Closed merlin1277 closed 5 years ago
Exception: Method "System.Collections.Generic.List.Add(T)" not found NativeScript.Editor.GenerateBindings.GetMethod (System.Type type, System.Reflection.MethodInfo[] methods, System.String methodName, System.String[] paramTypeNames, System.String[] genericTypeNames) (at Assets/NativeScript/Editor/GenerateBindings.cs:906) NativeScript.Editor.GenerateBindings.GetMethod (NativeScript.Editor.GenerateBindings+JsonMethod jsonMethod, System.Type enclosingType, System.Type[] typeTypeParams, System.Type[] genericArgTypes, System.Reflection.MethodInfo[] methods, System.String[] methodGenericTypeNames) (at Assets/NativeScript/Editor/GenerateBindings.cs:3582) NativeScript.Editor.GenerateBindings.AppendMethod (NativeScript.Editor.GenerateBindings+JsonMethod jsonMethod, System.Reflection.Assembly[] assemblies, System.Type enclosingType, System.Boolean enclosingTypeIsStatic, NativeScript.Editor.GenerateBindings+TypeKind enclosingTypeKind, System.Reflection.MethodInfo[] methods, System.Type[] typeTypeParams, System.Type[] genericArgTypes, System.Int32 indent, NativeScript.Editor.GenerateBindings+StringBuilders builders) (at Assets/NativeScript/Editor/GenerateBindings.cs:3659) NativeScript.Editor.GenerateBindings.AppendType (NativeScript.Editor.GenerateBindings+JsonType jsonType, System.Type[] genericArgTypes, System.Type type, NativeScript.Editor.GenerateBindings+TypeKind typeKind, System.Type[] typeParams, System.Int32 maxSimultaneous, System.Reflection.Assembly[] assemblies, NativeScript.Editor.GenerateBindings+StringBuilders builders) (at Assets/NativeScript/Editor/GenerateBindings.cs:1856) NativeScript.Editor.GenerateBindings.AppendType (NativeScript.Editor.GenerateBindings+JsonType jsonType, System.Type type, NativeScript.Editor.GenerateBindings+TypeKind typeKind, System.Reflection.Assembly[] assemblies, System.Int32 defaultMaxSimultaneous, NativeScript.Editor.GenerateBindings+StringBuilders builders) (at Assets/NativeScript/Editor/GenerateBindings.cs:1480) NativeScript.Editor.GenerateBindings.DoPostCompileWork (System.Boolean canRefreshAssetDb) (at Assets/NativeScript/Editor/GenerateBindings.cs:535) NativeScript.Editor.GenerateBindings.Generate () (at Assets/NativeScript/Editor/GenerateBindings.cs:374) NativeScript.Editor.EditorMenus.Generate () (at Assets/NativeScript/Editor/EditorMenus.cs:22)
I had "Arrays": [ { "Type": "UnityEngine.Color32" }, { "Type": "UnityEngine.Vector3" }, { "Type": "UnityEngine.Vector2" }, { "Type": "System.Int32" } ]
sorry, it is not a bug, it is just that some declarations are missing in the json when updating to net 4.0
Exception: Method "System.Collections.Generic.List.Add(T)" not found
NativeScript.Editor.GenerateBindings.GetMethod (System.Type type, System.Reflection.MethodInfo[] methods, System.String methodName, System.String[] paramTypeNames, System.String[] genericTypeNames) (at Assets/NativeScript/Editor/GenerateBindings.cs:906)
NativeScript.Editor.GenerateBindings.GetMethod (NativeScript.Editor.GenerateBindings+JsonMethod jsonMethod, System.Type enclosingType, System.Type[] typeTypeParams, System.Type[] genericArgTypes, System.Reflection.MethodInfo[] methods, System.String[] methodGenericTypeNames) (at Assets/NativeScript/Editor/GenerateBindings.cs:3582)
NativeScript.Editor.GenerateBindings.AppendMethod (NativeScript.Editor.GenerateBindings+JsonMethod jsonMethod, System.Reflection.Assembly[] assemblies, System.Type enclosingType, System.Boolean enclosingTypeIsStatic, NativeScript.Editor.GenerateBindings+TypeKind enclosingTypeKind, System.Reflection.MethodInfo[] methods, System.Type[] typeTypeParams, System.Type[] genericArgTypes, System.Int32 indent, NativeScript.Editor.GenerateBindings+StringBuilders builders) (at Assets/NativeScript/Editor/GenerateBindings.cs:3659)
NativeScript.Editor.GenerateBindings.AppendType (NativeScript.Editor.GenerateBindings+JsonType jsonType, System.Type[] genericArgTypes, System.Type type, NativeScript.Editor.GenerateBindings+TypeKind typeKind, System.Type[] typeParams, System.Int32 maxSimultaneous, System.Reflection.Assembly[] assemblies, NativeScript.Editor.GenerateBindings+StringBuilders builders) (at Assets/NativeScript/Editor/GenerateBindings.cs:1856)
NativeScript.Editor.GenerateBindings.AppendType (NativeScript.Editor.GenerateBindings+JsonType jsonType, System.Type type, NativeScript.Editor.GenerateBindings+TypeKind typeKind, System.Reflection.Assembly[] assemblies, System.Int32 defaultMaxSimultaneous, NativeScript.Editor.GenerateBindings+StringBuilders builders) (at Assets/NativeScript/Editor/GenerateBindings.cs:1480)
NativeScript.Editor.GenerateBindings.DoPostCompileWork (System.Boolean canRefreshAssetDb) (at Assets/NativeScript/Editor/GenerateBindings.cs:535)
NativeScript.Editor.GenerateBindings.Generate () (at Assets/NativeScript/Editor/GenerateBindings.cs:374)
NativeScript.Editor.EditorMenus.Generate () (at Assets/NativeScript/Editor/EditorMenus.cs:22)
I had "Arrays": [ { "Type": "UnityEngine.Color32" }, { "Type": "UnityEngine.Vector3" }, { "Type": "UnityEngine.Vector2" }, { "Type": "System.Int32" } ]