开发者

Debugging runs even with compiler's errors in Visual Studio

开发者 https://www.devze.com 2023-03-01 10:06 出处:网络
When I start debugging a project in Visual Studio 2010 (开发者_Python百科F5), the applications runs even if there are compiler\'s errors. Why is this so? How can I repair this? Menu, Tools->Options

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


Menu, Tools->Options

Debugging runs even with compiler's errors in Visual Studio


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


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消