windows Visual Studio 跳过构建
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/365650/
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
Visual Studio skips build
提问by Geo
When I try to build my project I get the following message in the build window :
当我尝试构建我的项目时,我在构建窗口中收到以下消息:
========== Build: 0 succeeded or up-to-date, 0 failed, 1 skipped ==========
========== 构建:0 成功或最新,0 失败,1 跳过 ==========
I tried rebuilding , then building again , but it doesn't help . Is there a way to view more detailed messages ? The "skipped" part doesn't give me any info on what's wrong . I am using Visual Studio 2005 Professional Edition .
我尝试重建,然后再次重建,但没有帮助。有没有办法查看更详细的消息?“跳过”部分没有给我任何关于错误的信息。我使用的是 Visual Studio 2005 专业版。
采纳答案by Coentje
Check with the configuration manager like CMS said and make sure that you have the right platform set. A lot of the time when you use something like the MS Application Blocks the default platform is set to Itanium.
请与 CMS 所说的配置管理器核对,并确保您拥有正确的平台设置。很多时候,当您使用 MS Application Blocks 之类的东西时,默认平台设置为 Itanium。
回答by CMS
Check on your solution properties, then go to "Configuration Properties", and make sure that all the projects that you want to build, have the build flag checked:
检查您的解决方案属性,然后转到“配置属性”,并确保您要构建的所有项目都选中了构建标志:
回答by ulidtko
Yet another reason why this could happen (as it happened to me):
这可能发生的另一个原因(就像发生在我身上一样):
When your VS installation is missing x64 compiler toolchain, and you're building for x64.
当您的 VS 安装缺少x64 编译器工具链,并且您正在为 x64 构建时。
To solve this, find MSVS in appwiz.cpl
("Programs and Features"), click "Uninstall/Change", then go to the x64 toolchain checkbox under C++ and check it.
要解决这个问题,在appwiz.cpl
(“Programs and Features”)中找到MSVS ,点击“Uninstall/Change”,然后去C++下的x64 toolchain复选框并勾选它。
回答by bobobobo
This recently happened to me when I tried to compile a project that was apparently orphaned from it's parent solution.
这最近发生在我身上,当我试图编译一个显然是从它的父解决方案中孤立的项目时。
When I finally did get it to compile, it wouldn't work because some library from another project was missing (that was supposed to be part of the solution to get a successful build).
当我最终编译它时,它不起作用,因为缺少来自另一个项目的某些库(这应该是获得成功构建的解决方案的一部分)。
回答by Wbucks
I have found the solution *.sln file to be the problem. Reverted back to a previous version and it fixed the problem. Often the project references a project that is the actual offender, so try and build up the reference list to see where the problem is.
我发现解决方案 *.sln 文件是问题所在。恢复到以前的版本并解决了问题。通常,该项目引用的项目是实际违规者,因此请尝试建立引用列表以查看问题出在哪里。
回答by kenny
Hmmm... I remember cursing at that one once? Just guessing from my awful memory, but perhaps the output directory path doesn't exist?
嗯……我记得曾经诅咒过那个?只是从我糟糕的记忆中猜测,但也许输出目录路径不存在?
回答by Jasper Bekkers
I generally run into that when the PC is low on resources (RAM), after closing things the build runs fine.
我通常会在 PC 资源 (RAM) 不足时遇到这种情况,关闭后构建运行良好。