Visual Studio 2010 does not catch compilation errors during assembly

I have a web project running in Visual Studio 2010 and the target .Net framework 4. When I create the solution, it will tell me that the build was successful, although there are (known) errors in the code. If I open the error page, the compiler will then pick up the error and underline it as blue, not red.

Is there a parameter that will control this behavior? Any ideas on how to fix it?

+3
source share
3 answers

If your solution has several projects, it is possible that one of them is not configured for assembly. In the assembly output window, did you see the name of the web project that is having problems?

, , .

alt text

0

MVC, (*.as {p, c} x) , , /p: MvcBuildViews = true .

0

( ) ASP.net 4.0 WebForm. , , . , ASP: Button click, . // .., . , . , , . , , . , , .

0

Source: https://habr.com/ru/post/1778198/


All Articles