title: How can I build a msbuild project into different folders?
body: <p>Have a good day. Most likely they solved such questions, but, in my case, the option p:/OutputPath and p:/OutDir do not work. gives an error like this - MSBUILD : error MSB1008: Only one project can be specified.</p>
  <p>I also googled it, wrote something like changing a parameter in csproj.
  But, my senior colleague before leaving did not recommend replacing something in the project itself.</p>
  <p>Please tell me what I'm doing wrong.</p>
  <p>I tried like this:</p>
  <pre><code>p:/OutputPath=C:\Jenkins\workspace\Api\Api_DEV\API_Build_Master\Various/p:/AutoParameterizationWebConfigConnectionStrings=false/p:Build=True/t:Clean,Rebuild
  </code></pre>
  <p>Desired output, I want to build the msbuild project depending on the branch.
  That is, if the parameter branch = master, then build the project in</p>
  <pre><code>&quot;C:\Jenkins\workspace\Api\Api_DEV\API_Build_Master\Master&quot;
  </code></pre>
  <p>If not, then in</p>
  <pre><code>&quot;C:\Jenkins\workspace\Api\Api_DEV\API_Build_Master\Various&quot;
  </code></pre>
  <p>Maybe you can do it like this: C:\Jenkins\workspace\Api\Api_DEV\API_Build_Master%branch%&quot;</p>
  <p>Doing in step msbuild jenkins</p>