The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Email Subscription

    Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 716 other subscribers

.NET/MSBuild: A solution for Skipped Build: Project: MyProject, Configuration: Debug Any CPU; Project not selected to build for this solution configuration

Posted by jpluimers on 2012/12/12

One of our solutions would not completely build.

An console application that was hardly used, was not built.

No warnings or hints in the “Error List”.

This is what the build log would show:

------ Skipped Build: Project: App404.UI, Configuration: Debug Any CPU ------
Project not selected to build for this solution configuration
========== Build: 21 succeeded or up-to-date, 0 failed, 1 skipped ==========

None of the suggestions at the Stack Overflow question visual studio 2005: skipping builds for unknown reason? would work (not even running msbuild with the highest verbosity level, you get so much information that it is impossible to weed the useful from the useless information).

Luckily, About | WishMesh pointed me in the right direction: inspect your solution file for anomalies.

And here it was:

[sourcecode language=”text”]
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BEAC1D12-5C95-403B-B7E0-CB83BF080892}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BEAC1D12-5C95-403B-B7E0-CB83BF080892}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4ED7A111-A7B9-498E-9B9F-D87D2B80405C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4ED7A111-A7B9-498E-9B9F-D87D2B80405C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4ED7A111-A7B9-498E-9B9F-D87D2B80405C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4ED7A111-A7B9-498E-9B9F-D87D2B80405C}.Release|Any CPU.Build.0 = Release|Any CPU
{40A8EBCA-1196-48E6-9257-392A3B637D35}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{40A8EBCA-1196-48E6-9257-392A3B637D35}.Debug|Any CPU.Build.0 = Debug|Any CPU
{40A8EBCA-1196-48E6-9257-392A3B637D35}.Release|Any CPU.ActiveCfg = Release|Any CPU
{40A8EBCA-1196-48E6-9257-392A3B637D35}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
[/sourcecode]

The first project is missing the CPU.Build.0 lines for both Debug and Release.
Fixing that solved the build.

–jeroen

via: VS2010: Project not selected to build for this solution configuration | WishMesh.

Leave a Comment

 

Discover more from The Wiert Corner - irregular stream of stuff

Subscribe now to keep reading and get access to the full archive.

Continue reading