Monday, 14 July 2014

Project not selected to build for this solution configuration


You can create several build configurations for a solution. For example, you can configure a debug build that your testers/developer can use to find and fix problems, and you can configure different kinds of builds that you can distribute to different customers. 

When you upgrade your older solution files to latest version of visual studio 2010 or 2012 you may get compilation output as "Project not selected to build for this solution configuration", even though with the earlier version of visual studio these projects were building fine. 

 In order to build required project you just have to modify the solution configuration. Steps below mention how to do it.


  • Step1  : When you build a project you will get error screen as below
  • Step 2 : Launch Solution Explorer by selecting View from menu bar and then clicking on Solution Explorer. 
  • Step 3 : Now right click on solution and select properties.
  • Step 4: Property pages will open , now navigate to Configuration properties.
  • Step 5: In the right side panel select the project you want to build and for that project simply check the checkbox under Build tab.
  • Step 6: Click on Apply and OK. After this build your project again and it will be successfull.

No comments:

Post a Comment