C# 使用编辑器x64创建统一dll
我需要使用64位编辑器创建一个dll,以便在unity 64位环境中重用 为此,我添加了以下选项:C# 使用编辑器x64创建统一dll,c#,unity3d,64-bit,system.reflection,C#,Unity3d,64 Bit,System.reflection,我需要使用64位编辑器创建一个dll,以便在unity 64位环境中重用 为此,我添加了以下选项: CompilerParameters cp = new CompilerParameters(); cp.CompilerOptions = "/platform:x64"; 但我收到了这个错误: (0,0) : error CS8088: Your .NET Runtime does not support `PE32Plus'. Please use the latest Mono runt
CompilerParameters cp = new CompilerParameters();
cp.CompilerOptions = "/platform:x64";
但我收到了这个错误:
(0,0) : error CS8088: Your .NET Runtime does not support `PE32Plus'. Please use the latest Mono runtime instead.
如果我创建一个32位的dll,当我加载
assembly = System.Reflection.Assembly.Load(mydll.bytes);
它给了我坏的图像格式
在哪里我可以明确地解决这个问题?Unity被设计成跨平台的,你为什么要这样做?@David因为我需要将脚本打包到assetpackage中,并重新使用到另一个加载该包的项目中。。。我所有的尝试都是在墙前结束的…: