How to determine why visual studio might be skipping projects when building a solution

Viewed 100163

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.

37 Answers

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

Restarting Visual Studio did the trick

My solution is the same as mentioned previously: Delete -> Add existing project

But this solution implies that references between projects get gone

To avoid re-adding references: and in case if you use version-control system like GIT or TFS or whatever, it is possible to acheve goal with the following steps:

  1. Make shure that all the changes are commited / checked-in before the operation

  2. Go through all projects deletting them from solution and adding-existing them

  3. Notice that the .sln file has changed

  4. Keep the new .sln file, but undo the changes to all the .cspoj files with the version-control system

I had a weird one that may be worth documenting amongst the other possibilities here..

I'd added a Shared Project to my solution, with code that was used in two or three of the other projects. As you're aware - Shared Projects are just code, and not really a project in the traditional sense.. You can't 'build' a shared project, it's just code that is embedded into the other projects, and then built there.

But somehow my solution file had been updated as if the shared project was it's own thing that needed building. I'm guessing then that any time I was trying to build and I hadn't changed the code in the shared project, then it figured 'nothing has changed, skip those builds'

I found the shared project in the solution.sln file like:

Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Api.Common", "Api.Common\Api.Common.shproj", "{EC580471-D78A-4509-AC46-BD565553AD60}"

..which is fine. What isn't fine is that this project also appeared in the GlobalSection(ProjectConfigurationPlatforms) = postSolution like:

    {EC580471-D78A-4509-AC46-BD565553AD60}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
    {EC580471-D78A-4509-AC46-BD565553AD60}.Debug|Any CPU.Build.0 = Debug|Any CPU
    {EC580471-D78A-4509-AC46-BD565553AD60}.Release|Any CPU.ActiveCfg = Release|Any CPU
    {EC580471-D78A-4509-AC46-BD565553AD60}.Release|Any CPU.Build.0 = Release|Any CPU

I removed those four lines from my .sln file, and now things seem happy again

The first thing you need to do is diagnose why the build is skipping projects. So to get a detailed build output change the verbosity to detailed in the following place in Visual Studio.

enter image description here

I've just had this issue, and was able to resolve it by removing the hidden .vs folder in the topmost folder. After restarting Visual Studio everything worked again.

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.

  1. Close visual studio
  2. Open the sln file with notepad
  3. delete all of the things like this : {B546C55D-9321-4FC0-B25C-46844222BEBE}.Debug with Fakes|x86.ActiveCfg = Debug with Fakes|x86 (there will be a bunch of them)

4.save the file 5.open visual studio and all better

I had a similar thing just happen to me. I'm not sure what the problem was, but it would not Clean, Build, Rebuild, etc. I am operating in Visual Studio 2017 and wanted a netstandard2.0 assembly. The issue for me was that somehow the project type was incorrect, maybe I started from a netcoreapp class library, something like that, stuck in the Solution file, I do not recall. Anyway, I backed up the project, created a new netstandard class library project, and factored in the backed up bits, and that fixed it for me. HTH someone.

i updated to 15.9.11 , ... after some builds, same problem:most projects are skipped (which build a second ago without problems). Unloading/reloading the solution helps always in my case, but it will happen again soon.

I have no idea why... except a big bug in VS2017

I checked configuration manager , all checkmarks are set to build.

Maybe, it has something to do with nuget packages, but that is just a guess

The solution has only c++/vcxproj, no csproj. 64 and 32 are installed both

I checked-in my project to source control from one computer and downloaded it to another and it will not build properly there. It will skip building projects and didn't even create the master \Debug folder for outputs.

The solution (VS2019) is to right click on solution and select Configuration Manager.

I saw the build checkbox was not checked for two projects that I was building (shown below). I don't know why they were unchecked but checking them and building project worked!

enter image description here

I update one small update of Visual Studio 2017 and then the installer reminds me to restart my computer,but I did not restart.When I build my project or solution in Visual Studio 2017,I meet the same above problem.I guess the update maybe the key,so I restart my computer,I did it.:>

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.

I had similar problem, I had one project which could not load in solution explorer due to some reason. When I loaded that project it worked like a charm.

I just got into this trouble:

Had updated VS 2017 to latest version 15.9.11 and few of my projects were updated to .net core 2.2. I initially loaded all projects tried building/ cleaning/ rebuilding and everything were skipped. Followed the below to resolve:

  1. I unloaded each project and reloaded them.
  2. Closed all instances of VS and opened VS as an administrator (right click the short cut and pick the “Run as administrator” option)

That's it everything was back in action and I was able to build all projects successfully.

The visual studio 2017

After adding the configuration in the Configuration Manger

Right Click on the Project -> Project Only -> Build Only / Rebuild Only / Clean Only

if all the other settings are correct .

Issue: Rebuilding, Build, Clean was skipping all my projects except two of them.

Solutions that didn't work for me:

  1. Solution configuration settings were as expected so no changes in them helped.

  2. Unloading and reloading didn't work.

Reason of occurrence:

This was happening because the target .NET framework was higher (4.7) for those 2 projects but lower for the other projects. A prompt had initially popped up asking me to install .NET 4.7, which I did, but it turns out it was unable to recognize that it is installed without restarting my machine.

Solutions that worked:

  1. Restarting my machine did the trick. After restarting it correctly recognized that .NET 4.7 is installed.
  2. Alternatively, downgrading the target framework of the project by right clicking on the project -> Properties -> Application -> Target Framework and setting it the same as the other projects which were getting skipped, also solved the issue.

I would recommend installing the latest .NET Framework and restarting machine to avoid running into further problems.

It will skip builds on any projects that have dependent projects that have failed to build.

This happened to me in VS 2019, and the solution was to simply restart visual studio. My build configuration was never modified.

Right click on solution ->Remove then Add the existing project, this worked for me.

Removing .\obj and .\bin directories did the trick.

Set everything to not build in Configuration Manager, rebuild, set everything to build in Configuration Manager, rebuild did the trick. Magic!

Related