Does Msbuild recognise any build configurations other than DEBUG|RELEASE
Posted
by
Dean
on Stack Overflow
See other posts from Stack Overflow
or by Dean
Published on 2009-03-03T14:47:58Z
Indexed on
2011/01/02
16:53 UTC
Read the original article
Hit count: 242
visual-studio-2005
|msbuild
I created a configuration named Test via Visual Studio which currently just takes all of DEBUG settings, however I employ compiler conditions to determine some specific actions if the build happens to be TEST|DEBUG|RELEASE.
However how can I get my MSBUILD script to detect the TEST configuration??
Currently I build
<MSBuild Projects="@(SolutionsToBuild)" Properties="Configuration=$(Configuration);OutDir=$(BuildDir)\Builds\" />
Where @(SolutionsToBuild) is a my solution. In the Common MsBuild Project Properties it states that $(Configuration) is a common property but it always appears blank?
Does this mean that it never gets set but is simply reserved for my use or that it can ONLY detect DEBUG|RELEASE. If so what is the point in allowing the creation of different build configurations?
© Stack Overflow or respective owner