Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/306.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# 如何安装ngen依赖项?_C#_.net_Performance_Ngen - Fatal编程技术网

C# 如何安装ngen依赖项?

C# 如何安装ngen依赖项?,c#,.net,performance,ngen,C#,.net,Performance,Ngen,我正在使用ngen安装exe的本机映像,但在尝试时还需要安装它们的依赖项 ngen install c:\myfiles\MyLib.dll /ExeConfig:c:\myapps\MyApp.exe 我得到以下错误 Could not load file or assembly xxx or one of its dependencies. The located assembly's manifest definition does not match the assembly ref

我正在使用ngen安装exe的本机映像,但在尝试时还需要安装它们的依赖项

ngen install c:\myfiles\MyLib.dll /ExeConfig:c:\myapps\MyApp.exe
我得到以下错误

Could not load file or assembly xxx  or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.
我正在将这些dll与Assembly.load一起使用

我怎样才能解决这个问题