我想在 IIS 上部署预编译版本以提高应用程序的性能。我在这个链接上找到了一个解决方案, https://forums.asp.net/t/2156430.aspx?How+to+precompile+in+VS+2019
但我的 Visual Studio 中没有“发布期间预编译”选项。我有不同的选择,如图所示。
注意:我还通过启用“启用 ReadyToRun 编译”来部署构建。但它不会对性能产生任何影响。
有什么建议吗?
据我所知,在 .NetCore 中,视图默认是预编译的,不像 MVC 5。