简体   繁体   English

为 .NetCore 3.1 Visual Studio 2019 部署预编译版本

[英]Deploying a Precompile build for .NetCore 3.1 visual Studio 2019

I want to deploy a pre-compile build on IIS in order to improve performance of the application.我想在 IIS 上部署预编译版本以提高应用程序的性能。 I found one solution on this link, https://forums.asp.net/t/2156430.aspx?How+to+precompile+in+VS+2019我在这个链接上找到了一个解决方案, https://forums.asp.net/t/2156430.aspx?How+to+precompile+in+VS+2019

But I am not having "Precompile during publishing" option in my visual studio.但是我的视觉工作室中没有“发布期间预编译”选项。 I have different options, see in the image.我有不同的选择,见图。 在此处输入图片说明

Note: I have also deploy build by enabling "Enable ReadyToRun Compilation".注意:我还通过启用“启用 ReadyToRun 编译”来部署构建。 but it does not make any affect in performance.但它不会对性能产生任何影响。

Any suggestions?有什么建议么?

我所知道的,在 .NetCore 中,视图默认是预编译的,不像 MVC 5。

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

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