How to determine why visual studio might be skippi

2019-01-17 13:30发布

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>------ Skipped Rebuild All: Project: pr1lib ------

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

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

21条回答
看我几分像从前
2楼-- · 2019-01-17 14:13

I find that sometimes when you have target platform as set to lets say x86 in your solution and in your projects the project does not actually always had it selected.

To double check go to the project properties and see if you can select that platform in the Build->Platform setting if you can not then you will need to go to the configuration manager and create that configuration.

查看更多
Ridiculous、
3楼-- · 2019-01-17 14:14

Go to the build menu and choose "configuration manager". This will show which projects are configured to build in your selected configuration.

查看更多
一夜七次
4楼-- · 2019-01-17 14:15

Problem exists in VS 2010 as well; of the proposed solutions: editing build config, cleaning, changing/re-changing target framework, do NOT work. But unloading and reloading the project does.

查看更多
不美不萌又怎样
5楼-- · 2019-01-17 14:16

Build, rebuild, and clean operations were being skipped. Unloading and reloading didn't help, and neither did restarting Visual Studio.

Once I removed the project from the solution and added it back, it is no longer skipped. To remove it, in Solution Explorer, right-click the project > Remove > OK. To add it back, in Solution Explorer, right-click the solution > Add > Existing Project and select your project

查看更多
该账号已被封号
6楼-- · 2019-01-17 14:18

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

[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".

*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]

查看更多
可以哭但决不认输i
7楼-- · 2019-01-17 14:18

Was running into the same problem with VS2005, all the configurations were correct . It was even skipping the Clean project command.

Finally Unloading /Reloading did the magic.

查看更多
登录 后发表回答