简体   繁体   English

使用ASP.NET无法获得NGen

[英]Cannot get NGen with ASP.NET working

I'm trying to use NGEN with an ASP.NET application to improve start up time. 我正在尝试将NGEN与ASP.NET应用程序一起使用以改善启动时间。 (I appreciate this isn't an ideal solution but I'm being asked to look into it) (我很欣赏这不是一个理想的解决方案,但我会被要求调查)

I can run nGEN against my target DLL and am now getting the message "All compilation targets are up to date". 我可以针对我的目标DLL运行nGEN,现在收到消息“所有编译目标都是最新的”。

However, when I try to verify whether this is working by starting the application and using the Assembly Binding Log Viewer (ticking Native Images in the log categories) , I don't see any my application listed, which suggests that it isn't working for some reason. 但是,当我尝试通过启动应用程序并使用程序集绑定日志查看器(在日志类别中勾选本机映像)来验证这是否正常工作时,我没有看到列出任何我的应用程序,这表明它不起作用由于某些原因。

I feel sure I'm missing something obvious, anyone know of a way I can verify whether the NGEN images are being used? 我确信我错过了一些明显的东西,任何人都知道我可以验证是否正在使用NGEN图像?

Have a look here . 看看这里

If you pre-compile the ASP.NET app and then NGEN, you can achieve what you are looking for. 如果您预编译 ASP.NET应用程序然后再编译 NGEN,您就可以实现所需的目标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM