I get the following error in console when I import the asset “Easy Save 2”. I asked in the forum and the developer said it is a Unity error and not asset, so I should ask here.
I have v4.6 folder in “C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v4.6” on my computer since I installed NET Framework 4.6, but there is no .NETPortable folder for me. Is this a big problem? I am using Windows 7 x64 and it’s all updated as well.
BTW, when I launch Easy Save in editor, it launches fine without any issues (though I have not tested it in anything). This error pops up with this asset only on latest version of Unity.
The error I get:
[AssemblyUpdater] Assembly reference folder does not exist: 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.6\'
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'System.Diagnostics.Debug, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) <0x2d9b958 + 0x00273> in <filename unknown>:0
at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) <0x2d9b920 + 0x00030> in <filename unknown>:0
at Mono.Cecil.DefaultAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) <0x2d9b4c0 + 0x00063> in <filename unknown>:0
at Mono.Cecil.MetadataResolver.Resolve (Mono.Cecil.TypeReference type) <0x2d9b240 + 0x000b1> in <filename unknown>:0
at Mono.Cecil.ModuleDefinition.Resolve (Mono.Cecil.TypeReference type) <0x2d9b0e0 + 0x00027> in <filename unknown>:0
at Mono.Cecil.TypeReference.Resolve () <0x2d9b080 + 0x0002b> in <filename unknown>:0
at Mono.Cecil.Mixin.CheckedResolve (Mono.Cecil.TypeReference self) <0x2d9af40 + 0x00011> in <filename unknown>:0
at Mono.Cecil.SignatureReader.ReadCustomAttributeEnum (Mono.Cecil.TypeReference enum_type) <0x2d9aeb8 + 0x00013> in <filename unknown>:0
at Mono.Cecil.SignatureReader.ReadCustomAttributeElementValue (Mono.Cecil.TypeReference type) <0x2d627c8 + 0x00077> in <filename unknown>:0
at Mono.Cecil.SignatureReader.ReadCustomAttributeElement (Mono.Cecil.TypeReference type) <0x2d62678 + 0x0007f> in <filename unknown>:0
at Mono.Cecil.SignatureReader.ReadCustomAttributeFixedArgument (Mono.Cecil.TypeReference type) <0x2d625c0 + 0x00073> in <filename unknown>:0
at Mono.Cecil.SignatureReader.ReadCustomAttributeConstructorArguments (Mono.Cecil.CustomAttribute attribute, Mono.Collections.Generic.Collection`1 parameters) <0x2d62498 + 0x00087> in <filename unknown>:0
at Mono.Cecil.MetadataReader.ReadCustomAttributeSignature (Mono.Cecil.CustomAttribute attribute) <0x2d622c0 + 0x0007f> in <filename unknown>:0
at Mono.Cecil.CustomAttribute.<Resolve>b__2 (Mono.Cecil.CustomAttribute attribute, Mono.Cecil.MetadataReader reader) <0x2d621e8 + 0x0001b> in <filename unknown>:0
at Mono.Cecil.ModuleDefinition.Read[TItem,TRet] (Mono.Cecil.TItem item, System.Func`3 read) <0x2d36588 + 0x0005c> in <filename unknown>:0
at Mono.Cecil.CustomAttribute.Resolve () <0x2d62068 + 0x0008b> in <filename unknown>:0
at Mono.Cecil.CustomAttribute.get_ConstructorArguments () <0x2d61fc8 + 0x00013> in <filename unknown>:0
at Unity.Cecil.Visitor.Visitor.Visit (Mono.Cecil.CustomAttribute customAttribute, Unity.Cecil.Visitor.Context context) <0x2d98928 + 0x0015b> in <filename unknown>:0
at Unity.Cecil.Visitor.Visitor.Visit (Mono.Cecil.FieldDefinition fieldDefinition, Unity.Cecil.Visitor.Context context) <0x2d97c40 + 0x000b1> in <filename unknown>:0
at Unity.Cecil.Visitor.Visitor.Visit (Mono.Cecil.TypeDefinition typeDefinition, Unity.Cecil.Visitor.Context context) <0x2d7f930 + 0x0044c> in <filename unknown>:0
at Unity.Cecil.Visitor.Visitor.Visit (Mono.Cecil.ModuleDefinition moduleDefinition, Unity.Cecil.Visitor.Context context) <0x2d7aa68 + 0x00081> in <filename unknown>:0
at Unity.Cecil.Visitor.Visitor.Visit (Mono.Cecil.AssemblyDefinition assemblyDefinition, Unity.Cecil.Visitor.Context context) <0x2d7a7e0 + 0x00081> in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x2cf8188 + 0x0008f> in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x2cf8188 + 0x000db> in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) <0x2d7a7a0 + 0x00039> in <filename unknown>:0
at Unity.Cecil.Visitor.Visitor.Visit[T] (Unity.Cecil.Visitor.T node, Unity.Cecil.Visitor.Context context) <0x2d79ee8 + 0x000af> in <filename unknown>:0
at Unity.Cecil.Visitor.Extensions.DoAccept[T] (Unity.Cecil.Visitor.T definition, Unity.Cecil.Visitor.Visitor visitor) <0x2d79e08 + 0x0004b> in <filename unknown>:0
at Unity.Cecil.Visitor.Extensions.Accept (Mono.Cecil.AssemblyDefinition assemblyDefinition, Unity.Cecil.Visitor.Visitor visitor) <0x2d79dd8 + 0x0001f> in <filename unknown>:0
at AssemblyUpdater.Steps.AssemblyUpdaterStepBase.Apply (AssemblyUpdater.Core.AssemblyUpdaterContext context) <0x2da4c88 + 0x00023> in <filename unknown>:0
at AssemblyUpdater.Core.AssemblyUpdaterPipeline.RunUpdateRound (AssemblyUpdater.Core.AssemblyUpdaterContext context) <0x2da4990 + 0x000c0> in <filename unknown>:0
at AssemblyUpdater.Core.AssemblyUpdaterPipeline.Run (AssemblyUpdater.Core.AssemblyUpdaterContext context) <0x2da4948 + 0x00023> in <filename unknown>:0
at AssemblyUpdater.Application.Program.CheckForObsoleteAPIUsage (AssemblyUpdater.Application.CommandLineSpec config) <0x2d40460 + 0x0015b> in <filename unknown>:0
at AssemblyUpdater.Application.Program.Main (System.String[] args) <0x2ce0f18 + 0x000fb> in <filename unknown>:0
UnityEditor.Scripting.APIUpdaterHelper:DoesAssemblyRequireUpgrade(String)