Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<ol> <li>Ensure that the project C is a dependency of project B. (In this case there isn't a project B but if there was then make sure.)</li> <li><p>Edit project C's proj file in a text editor. Add the followingat the bottom of the file but before the closing project tag, where a.sln is the solution for project A.</p> <p>&lt;ItemGroup&gt;<br/> &nbsp;&nbsp;&nbsp;&lt;ProjectsToBuild Include="a.sln"/&gt;<br/> &lt;/ItemGroup&gt;<br/> &lt;Target Name="BeforeBuild"&gt;<br/> &nbsp;&nbsp;&nbsp;&lt;MSBuild<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Projects="@(ProjectsToBuild)"<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Targets="Build" ToolsVersion="2.0"&gt;<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;Output<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TaskParameter="TargetOutputs"<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ItemName="AssembliesBuiltByChildProjects" /&gt;<br/> &nbsp;&nbsp;&nbsp;&nbsp;&lt;/MSBuild&gt;<br/> &nbsp;&nbsp;&nbsp;&nbsp;&lt;Copy SourceFiles="@(TargetOutputs)"<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DestinationFolder="@(SolutionDir)\References"<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&gt;<br/> &nbsp;&nbsp;&lt;/Target&gt;<br/></p></li> <li><p>Create a references folder under you solution and ensure that it is marked as a reference folder for project C.</p></li> <li><p>Build Project B.</p></li> </ol> <p>I haven't tested it but the concept should work.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload