I am attempting to use an external DLL that I installed from a Nuget Package in Visual Studio. I then imported the dll file as a new asset to /assets/plugins.
I have tried reinstalling the package and moving the dll to different paths, as well as changing target frameworks in visual studio but nothing has seemed to work and cannot find an answer that applies to my situation.
I receive the following error and have been stuck for quite some time now:
*Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.*
*at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)*
*at System.Reflection.Assembly.GetTypes () [0x00000] in :0*
*at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in :0*
*at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in :0 *
*at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in :0 *
*at Mono.CSharp.Driver.LoadReferences () [0x00000] in :0 *
*at Mono.CSharp.Driver.Compile () [0x00000] in :0 *
*at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in :0 *
*Missing method .ctor in assembly C:\Users\my\path\Assets\Plugins\EvilDICOM.dll, type System.Runtime.Versioning.TargetFrameworkAttribute
The class System.Runtime.Versioning.TargetFrameworkAttribute could not be loaded, used in EvilDICOM*
*Can't find custom attr constructor image: C:\Users\my\path\Assets\Plugins\EvilDICOM.dll mtoken: 0x0a000004*
↧