# How do I change MSBuild solution configuration

**URL:** https://www.finalbuilder.com/forums/t/how-do-i-change-msbuild-solution-configuration/1730
**Category:** Discussion
**Created:** [March 31, 2011, 1:26am UTC](https://www.finalbuilder.com/forums/t/how-do-i-change-msbuild-solution-configuration/1730 "2011-03-31T01:26:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 31, 2011, 1:26am UTC](https://www.finalbuilder.com/forums/t/how-do-i-change-msbuild-solution-configuration/1730/1 "2011-03-31T01:26:50Z")

</div>

I have tried to set the Target in the MSBuild action &nbsp;to 'Release|Any CPU' (without the quote) but when I run the action, it errors with:

C:\SVN\Dev\EnterpriseManager\EnterpriseManager.sln : error MSB4057: The target "Release|Any CPU" does not exist in the project.

I've tried just using 'Release' but that doesn't work. This is a VS 2005 C# solution and all the configuations in the projects are set to 'Release|Any CPU'.

&nbsp;

We are evaluating this product and so far it has been great to work with but I really need to be able to produce a release version rather than a debug version.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 31, 2011, 2:06am UTC](https://www.finalbuilder.com/forums/t/how-do-i-change-msbuild-solution-configuration/1730/2 "2011-03-31T02:06:26Z")

</div>

Hi Charles,   
 On the Project Properties tab of the MS Build action, you can set the Configuration property to whichever config you wish to build (Release, Debug etc).   
  
 You may also want to look the Build [VS.NET](http://VS.NET) Solution action - it’s a bit more flexible and easier to configure than MS Build. So long as you tick the ‘Use MSBuild’ option you don’t need to have [VS.NET](http://VS.NET) installed on the build machine.   
  
 Hope that helps,   
  
 Ben

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 31, 2011, 7:19am UTC](https://www.finalbuilder.com/forums/t/how-do-i-change-msbuild-solution-configuration/1730/3 "2011-03-31T07:19:09Z")

</div>

&nbsp;Ben,

Thanks. Works just fine. I will look at the VS.NET Solution action to see if it more closely matches what we need.

Charles
