Build has been canceled
I am having trouble compiling a default project using visual 开发者_如何学Cstudio 2010 professional 64bit. When I run 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 CPU ------ Build has been canceled.
Was JsLint and the default option 'cancel on build'
Have you tried executing the build from the command line using MSBuild.exe? You can better tweak the debug level and perhaps learn more about where the build is failing. For example, executing this from the command line:
Msbuild.exe WebApplication1.csproj /verbosity:detailed
Will give you more data than just building in visual studio. If that isn't enough, you can change the "detailed" to "diagnostic" and learn even more (though, that will be hard to read).
I think (though I could be wrong) 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
Although years after the original question, this might help someone else.
Another cause of this can be the length of an output path. You can get this problem without it being obvious if your projects file paths are >just< small enough to fit within the limit, but when building, the extra paths (/obj/debug and the like) go over the limit.
The fix, obviously, is to move the root of your solution as close to root as possible (i.e. try using C:\a[your solution]).
If this is still too long then you've got problems.
Annoying that VS doesn't explain this, even with diagnostic level logging.
精彩评论