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

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

    Join 1,927 other followers

.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:

	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

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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 
%d bloggers like this: