如何确定为什么Visual Studio在构建解决方案时可能会跳过项目 [英] How to determine why visual studio might be skipping projects when building a solution

查看:263
本文介绍了如何确定为什么Visual Studio在构建解决方案时可能会跳过项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在调试其他人的工作,解决方案非常大.当我尝试构建整个项目时,解决方案中的几个项目不会构建,而只是跳过.在构建过程中查看输出窗口会显示:

I am debugging someone else's work and the solution is quite large. When I try to build the entire thing, several projects within the solution don't build and just skip. Viewing the output window during the build process says:

1> ------跳过全部重建:项目:pr1lib ------

1>------ Skipped Rebuild All: Project: pr1lib ------

如何确定为什么跳过了这些版本?我找不到其他输出.

How can I determine why these builds were skipped? I am unable to find additional output.

这是VS2008的解决方案,由c#和c ++代码组成.

This is with VS2008 and the solution is comprised of c# and c++ code.

推荐答案

右键单击解决方案,选择属性",然后选择配置属性".在这里,您可以选择要构建的项目.

Right click the solution, choose Properties and then Configuration Properties. Here you can choose which projects to build.

[编辑]:
请参阅Kdt的评论:...当我查看配置属性时...在将解决方案设置为构建任何CPU"的同时,将项目构建目标配置为混合平台".

[edit]:
See Kdt's comment: ... when I looked in configuration properties ... the project build target was configured for "Mixed Platforms" while the solution was set to build "Any CPU".

*当我遇到此问题时,主项目只有"Any CPU",并且它也将子dll设置为"any CPU",但是,我删除了该配置文件,仅保留了"x86".仅为dll选择x86使其开始工作
[/edit]

*When this problem happened to me, The main project only had 'Any CPU' and it set the child dll to 'any CPU' too, however, I'd deleted that profile and left only 'x86'. Picking x86 for just the dll make it start working
[/edit]

这篇关于如何确定为什么Visual Studio在构建解决方案时可能会跳过项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆