Overview

Use MSBuild From Command-Line

MSBuild.exe MyProj.proj -property:Configuration=Debug

Project file

Properties

<PropertyGroup>
    <BuildDir>Build</BuildDir>
</PropertyGroup>
<Configuration  Condition="'$(Configuration)' == ''">Debug</Configuration>