Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/271.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 使用编辑器x64创建统一dll_C#_Unity3d_64 Bit_System.reflection - Fatal编程技术网

C# 使用编辑器x64创建统一dll

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

我需要使用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 runtime instead.
如果我创建一个32位的dll,当我加载

assembly = System.Reflection.Assembly.Load(mydll.bytes);
它给了我坏的图像格式


在哪里我可以明确地解决这个问题?

Unity被设计成跨平台的,你为什么要这样做?@David因为我需要将脚本打包到assetpackage中,并重新使用到另一个加载该包的项目中。。。我所有的尝试都是在墙前结束的…: