title: Additional paths in msbuild script
body: <p>How to specify additional assembly reference paths for the MSBuild tasks?</p>
  
  <p>I have following script so far, but can't figure out how to specify additional search paths.</p>
  
  <pre><code>&lt;ItemGroup&gt;
   &lt;ProjectsToBuild Include="..\Main\Main.sln" /&gt;
  &lt;/ItemGroup&gt;
  
  &lt;!-- The follwing paths should be added to reference search paths for the build tasks --&gt;
  &lt;ItemGroup&gt;
   &lt;MyAddRefPath Include="$(MSBuildProjectDirectory)\..\..\Build\Lib1" /&gt;
   &lt;MyAddRefPath Include="$(MSBuildProjectDirectory)\..\..\Build\Lib2" /&gt;
  &lt;/ItemGroup&gt;
  
  &lt;MSBuild
   Projects="@(ProjectsToBuild)"
   Properties="Configuration=Debug;OutputPath=$(BuildOutputPath)"&gt;
  &lt;/MSBuild&gt;
  </code></pre>
  
  <p>UPDATE:</p>
  
  <p>Please show one complete working script which invokes original project, such as an SLN with multiple additional reference paths.</p>
  
  <p>No suggestions on how to improve the project structure please.
  I know how to build a good structure, but now it's the task of building an existing piece of crap.</p>