使用NGen生成本机映象后没有效果的问题

我通过VS命令行工具把dll生成本机映象,但运行程序时没有感觉到优化效果,经过查询确定了
原因:因为我的机子是64位系统

解决:所以需要

Assembly manager loaded from: C:\Windows\Microsoft.NET\ Framework64\v4.0.30319\clr.dll

Your process is running in 64-bit mode, the default with the AnyCPU target on a 64-bit operating system. That requires that you run the 64-bit version of ngen.exe. Be sure to select the proper Visual Studio Command Prompt. There are two, the one that sets up the environment for 64-bit tools is named "Visual Studio x64 Win64 Command Prompt (2010)" in the Start menu.

意思是需要Visual Studio x64 Win64 Command Prompt的命令行工具才行

posted on 2015-04-11 22:00  老有所依  阅读(128)  评论(0)    收藏  举报

导航