Debugging runs even with compiler's errors in

2020-03-08 10:36发布

When I start debugging a project in Visual Studio 2010 (F5), the applications runs even if there are compiler's errors. Why is this so? How can I repair this?

4条回答
趁早两清
2楼-- · 2020-03-08 11:12

Menu, Tools->Options

enter image description here

查看更多
走好不送
3楼-- · 2020-03-08 11:22

You might have set it to run from the last known successful build.

Look here for more details : How to enable/disable compile errors warning in Visual Studio

查看更多
兄弟一词,经得起流年.
4楼-- · 2020-03-08 11:28

This behaviour is by-design when the project is a Website. Visual Studio will start the web development server even before it ends compilation of all webpages. This happens because a Website is supposed to compile on demand, that is when the specific pages are requested. Web applications on the other hand, are precompiled.

查看更多
可以哭但决不认输i
5楼-- · 2020-03-08 11:34

If you have multiple projects in the same solution and the errors are occuring in a project that isn't required by the startup project, then I think the code will launch.

查看更多
登录 后发表回答