msbuild with mvc and web api project in a single solution
<p>I have a solution include 2 project with 2 publish profile:</p>

<pre><code>WebApplication Project: App.pubxml

WebApi Project: Api.pubxml
</code></pre>

<p>When I using the Team Foundation Server Build Definition, i set the MSBuild Arguments to</p>

<pre><code>/p:DeployOnBuild=true /p:PublishProfile=App /p:PackageLocation=$(build.artifactstagingdirectory)\Build
</code></pre>

<p>It will build error and alert me that it can't found app.pubxml in WebApi Project.</p>

<p>So, My question are:</p>

<ol>
<li><p>Why msbuild will build these 2 project not only one of them?</p></li>
<li><p>Can I separate using different publish profile in the msbuild arguments Or Can I only build only one of the project?</p></li>
</ol>