Reputation: 6806
I have a solution with a whole bunch of projects, but some of them for some reason refuse to build, even when I right click on them individually and choose "Build". I get messages like this in the output window:
1>------ Skipped Build: Project: Framework ------
1>
2>------ Skipped Build: Project: Core ------
2>
========== Build: 0 succeeded or up-to-date, 0 failed, 2 skipped ==========
Where Core is the project I'm trying to build and Framework is a project on which Core depends (and I made changes to code in Core but not Framework).
This is really frustrating because sometimes I have to make changes to code in one of these projects, and it seems that the only way to build them is to do a batch build, which takes a while.
Why are some of my projects refusing to build even when told explicitly to do so? And how can I fix this so they build normally?
Upvotes: 2
Views: 1730
Reputation: 23828
Please check Build-->Configuration Manager
Please make sure that these projects have the same Platform and Configuration. Also, do not forget to check Build option.
And, close VS, delete .vs
hidden folder under the solution folder, bin
and obj
folder of the projects and then restart your project.
Besides, if this does not work, please remove these projects from the solution file by right-click on these projects-->Remove. Then, readd these projects into the solution again.
In addition, you can also set MSBuild project build output verbosity to Detailed
under Tools-->Options-->Projects and Solutions-->Build and Run to check why these projects skip build.
Upvotes: 5