Build Canceled

I had a problem compiling a default project using professional 64-bit Visual Studio 2010. When I launch a new web application for asp.net or asp.net mvc, I get the following error in the output window.

------ Build started: Project: WebApplication1, Configuration: Debug Any processor ------ The build has been canceled.

+4
source share
3 answers

Was JsLint and the default option is 'cancel on build'

+14
source

Have you tried building from the command line using MSBuild.exe? You can better adjust the debugging level and perhaps learn more about where the build failed. For example, by running this from the command line:

Msbuild.exe WebApplication1.csproj / verbosity: verbose

Give you more data than just create a visual studio. If this is not enough, you can change โ€œverboseโ€ to โ€œdiagnosticโ€ and find out even more (although it will be difficult to read).

I think (although I could be wrong) that what you get in the visual studio window is "minimal" verbosity, which often hides some important facts.

http://msdn.microsoft.com/en-us/library/ms164311.aspx

0
source

Although years after the initial question, this may help someone else.

Another reason for this may be the length of the output path. You can get this problem without being obvious if your project file paths> just <are small enough to fit the limit, but when building additional paths (/ obj / debug, etc.) exceed the limit.

The fix, obviously, is to bring the root of your solution as close to the root as possible (i.e. try using C: \ a [your solution]).

If it's still too long, you have a problem.

It is annoying that VS does not explain this, even when logging the diagnostic level.

0
source

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


All Articles