Debugging runs even with compiler's errors in Visual Studio

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?


Menu, Tools->Options

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.

Need Your Help

How to get a Core Data Model Picture to fit to 1 page when printing?

iphone xcode ios core-data

Ok, embarrassing, there must be an easy way - I have a Core Data model diagram that I want to print - printing is easy, but it pushes it over 4 pages which is difficult to carry around as a handy

Laravel 4 - logging SQL queries

php laravel

There are already several questions in regards to logging the SQL query in Laravel 4. But I've tried almost all of them and it's still not working the way I want.