简体   繁体   English

如何在Visual Studio中即时启用编译

[英]How to enable compilation on the fly in Visual Studio

I have an ASP.NET Core 2.2 application. 我有一个ASP.NET Core 2.2应用程序。 I run it using Ctrl + F5 . 我使用Ctrl + F5运行它。 But if I change C# code, I don't see changes after refreshing the website in the browser. 但是,如果我更改C#代码,则在浏览器中刷新网站后看不到更改。 How can I compile on the fly? 如何进行即时编译?

This happens automatically when running out of process. 当进程用尽时,这会自动发生。 More likely than not, you're working on an ASP.NET Core 2.2 app, where the default process model has now been changed to in process. 您很有可能正在使用ASP.NET Core 2.2应用程序,该应用程序中的默认流程模型现已更改为正在进行中。 When running in this model, you must explicitly rebuild. 在此模型中运行时,必须显式重建。 You can edit your project properties to switch back to out of process if you like. 如果愿意,您可以编辑项目属性以切换回过程。

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

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