In my VB.NET project I have three configurations DEBUG|TEST|RELEASE.
Currently when I am building using MSbuild and TeamCity I hard code the configuration, which smells badly!, to TEST
<Configuration Condition=" '$(Configuration)' == '' ">Test</Configuration>
Now before everyone screams at me not to hardcode this, the reason this was done was becuase we could NEVER seem to get $(Configuration) populated.
So my question is within MSBuild how can I read the currently selected configuration from the solution file commited to SVN?