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条回答
Lonely孤独者°
2楼-- · 2019-01-17 14:32

I had a very similar issue after generating a project from a decompiler from Telerik, then trying to recompile it. The project was skipped whenever I tried to rebuild it. Tried a lot of the suggestions above, but for me, it was the .NET Framework selected in the project properties.

Right-click project in solution file, select properties, application tab, change target framework from 4.0 to 3.5.

Then, rebuild, and I got a bunch of assembly reference missing errors, which makes sense since I haven't added references to them yet.

查看更多
再贱就再见
3楼-- · 2019-01-17 14:34

I had this problem in Visual Studio 2017 15.9.4 and after some searching and putting some time I found out that in my solution the .csproj file of one of projects got corrupted after merging in TFS. (I could build other projects by unloading the problematic project from solution). How I resolved my problem was that I compared the .csproj file before and after the merge and do fix that. And by fix I mean since my own project's type was .netStandard I removed unnecessary lines including Configuration PropertyGroup, all and others in the new .csproj file to make it similar to previous .netstandard-style version.

查看更多
淡お忘
4楼-- · 2019-01-17 14:35

Hey, just fixed this one. Thought it might help. You most likely didn't install corresponding compilers along with the visual studio. This happened to me today - by default, VS 2008 installer doesn't install x64 C++ compiler.

If you have SP1, uninstall it before changing VS installation. When done, install SP1 again.

查看更多
登录 后发表回答