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

查看:12
本文介绍了如何确定为什么 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".

*当这个问题发生在我身上时,主项目只有任何 CPU",并且它也将子 dll 设置为任何 CPU",但是,我删除了该配置文件,只留下了x86".仅为 dll 选择 x86 使其开始工作
[/编辑]

*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天全站免登陆