# MSBuild Action: ignorance is not bliss

**URL:** https://www.finalbuilder.com/forums/t/msbuild-action-ignorance-is-not-bliss/168
**Category:** Discussion
**Created:** [August 16, 2006, 9:53am UTC](https://www.finalbuilder.com/forums/t/msbuild-action-ignorance-is-not-bliss/168 "2006-08-16T09:53:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ken\_turner](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/7993a0/32.png) [@ken\_turner](https://www.finalbuilder.com/forums/u/ken_turner)
#### Post date: [August 16, 2006, 9:53am UTC](https://www.finalbuilder.com/forums/t/msbuild-action-ignorance-is-not-bliss/168/1 "2006-08-16T09:53:00Z")

</div>

I’m developing a generic C# build process, to cater for both .NET Framework v1.1 and v2.0; I have both versions of the Framework, together with the corresponding versions of their SDK’s installed on the build machine, but I **don’t** have either VS2003 or VS2005.  
  
The 1.1 option within my build therefore uses a Microsoft C# Project Compiler action, and that’s all working pretty well. The 2.0 option however uses an MSBuild Project action, and that’s where I’m coming a bit unstuck. I’m pretty ignorant about the C# language, VS2003, VS2005 and the MSBuild utility, but I would really like to know how I can use the Targets and Properties options in the MSBuild Project action to control what happens during the build.  
  
Can anybody give me any pointers? I really need a “MSBuild for Dummies” document - or better still a “MSBuild Project Action in FinalBuilder for Dummies” document, because the FinalBuilder on-line help is far too sketchy in this respect for my current needs.  
  
Specifically, how do I specify a **Debug** or a **Release** build?

---

<div class="post-metadata">

### Author: ![ken\_turner](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/7993a0/32.png) [@ken\_turner](https://www.finalbuilder.com/forums/u/ken_turner)
#### Post date: [August 16, 2006, 2:09am UTC](https://www.finalbuilder.com/forums/t/msbuild-action-ignorance-is-not-bliss/168/2 "2006-08-16T02:09:34Z")

</div>

OK guys, I’ve asnwered my last question:  
  
The MSBuild Action has a couple of sneaky properties, ExtraCmdLineParamsAtEnd and ExtraCmdLineParamsAtStart, which don’t actually appear at all on the input form for the action. Having done a bit of general reading about MSBuild, I set ExtraCmdLineParamsAtStart to /p:Configuration=Release, and Bingo! The Business!  
  
Has anybody else been down this torturous route?  
  
Can I suggest to the FinalBuilder guys that we need a drop-down on the MSBuild action, similar to that on the Microsoft C# Project Compiler action, to specify Release, Debug, etc?

---

<div class="post-metadata">

### Author: ![ken\_turner](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/7993a0/32.png) [@ken\_turner](https://www.finalbuilder.com/forums/u/ken_turner)
#### Post date: [August 17, 2006, 8:25am UTC](https://www.finalbuilder.com/forums/t/msbuild-action-ignorance-is-not-bliss/168/3 "2006-08-17T08:25:24Z")

</div>

Well the response has been somewhat underwhelming - doesn’t anybody use MSBuild out there?

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [August 17, 2006, 9:16am UTC](https://www.finalbuilder.com/forums/t/msbuild-action-ignorance-is-not-bliss/168/4 "2006-08-17T09:16:09Z")

</div>

Hi Ken,  
  
You should be able to set the Configuration=Release property from inside the ‘Properties’ section of the MSBuild action. Set Property to ‘Configuration’ and Value to ‘Release’, and you’ll get the same effect.  
  
I agree that the interface is a little counterintuitive. We can look into maybe adding a dropdown in the grid with some common property names, and (similarly) some dropdowns for common property values.
