visual-studio 如何在编译错误时停止 Visual Studio 2010
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2682510/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to stop Visual Studio 2010 on compilation error
提问by Dylan
At work we have a solution with over 90 projects. I want to know if there is a way to stop visual studio from compiling as soon as it encounters an error. Normally it will compile as far as it can and show a list of errors in the error window.
在工作中,我们有一个包含 90 多个项目的解决方案。我想知道是否有办法在遇到错误时立即阻止visual studio进行编译。通常它会尽可能编译并在错误窗口中显示错误列表。
Any ideas?
有任何想法吗?
回答by Sergii Volchkov
There is an extension for Visual Studio 2010 - 2017 for this purpose by Einar Egilsson: http://tech.einaregilsson.com/2011/01/06/stop-build-on-first-error-in-visual-studio-2010/
Einar Egilsson 为此目的对 Visual Studio 2010 - 2017 进行了扩展:http: //tech.einaregilsson.com/2011/01/06/stop-build-on-first-error-in-visual-studio-2010 /
StopOnFirstBuildError is Visual Studio 2010 extension that cancels the rest of a solution build if a single project fails to compile, thus saving you time. Download it in the Visual Studio Gallery.
StopOnFirstBuildError 是 Visual Studio 2010 扩展,如果单个项目无法编译,它会取消解决方案构建的其余部分,从而节省您的时间。在 Visual Studio 库中下载它。
回答by nickbw
Try VSCommands http://vscommands.com/feature-comparisonthe free (lite) version includes this feature (among others).
尝试 VSCommands http://vscommands.com/feature-comparison免费(精简版)版本包含此功能(以及其他功能)。
回答by ntziolis
Default Shortcut for C#: CTRL+BREAK
C# 的默认快捷键:CTRL+BREAK
回答by Tom Cabanski
You can always hit the break key to manually stop the compile.
您可以随时按中断键手动停止编译。

