Overwrite proj property with msbuild switch <p>Given the following proj snippet:</p> <pre><code>&lt;Project DefaultTargets="artifacts" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt; &lt;PropertyGroup&gt; &lt;msbuild40&gt;"msbuild.exe"&lt;/msbuild40&gt; &lt;/PropertyGroup&gt; &lt;Target Name="compile"&gt; &lt;Exec Command="$(msbuild40) src\ClientFrameworkLoader.sln /t:Build /p:Configuration=Debug;platform=win32" /&gt; &lt;Exec Command="$(msbuild40) src\ClientFrameworkLoader.sln /t:Build /p:Configuration=Release;platform=win32" /&gt; &lt;/Target&gt; &lt;/Project&gt; </code></pre> <p>am I right in thinking I can overwrite the <code>msbuild40</code> property using the following command?</p> <pre><code>MSBuild.exe snippet.proj /p:msbuild40="C:\Program Files (x86)\MSBuild\12.0\bin\MSBuild.exe" </code></pre> <p><em>I don't have a Windows machine to hand right now otherwise I'd just try this.</em></p>