开发者

How do I ngen .NET DLLs that are installed on my system to avoid JIT optimization for debugging?

I have the .NET Framework 4.0 installed and need to ngen a native image of a DLL from 3.5 without optimizations so I can de开发者_Go百科bug it easier.

I've tried a couple of different ways:

  1. Going to my C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0

Creating System.Workflow.Activities.ini with:

ngen.exe uninstall System.Core.dll

[.NET Framework Debugging Control] 
GenerateTrackingInfo=1 
AllowOptimize=0 

and running

ngen.exe uninstall System.Workflow.Activities.dll
ngen.exe install System.Workflow.Activities.dll /Debug

Now, when I go to C:\Windows\Assembly, I see that the version installed is the MSIL, instead of AMD64.

  1. I also tried going to C:\Windows\assembly\GAC_MSIL and running NGEN there.

Again, no go.

Any ideas on what to do?


You can try GAC. You can do this on the CMD or the Visual Studio Command.

gacutil -if [DLLNAME.dll] 

here is a bit more information: http://www.extofer.com/2011/03/visual-studio-external-gac-tool.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜