I have a solution with a multiple projects.
Let's say I have projects :
- P1
- P2 with a reference to P1
- P3
- P4 with a reference to P1 and P3 a dependency to a nugget package N1
P2 is my startup project.
I would like to configure P2 with a dependency to P4 so P4 will be build and P4 and the dependencies pushed to the bin folder of P2 but I don't want P2's dll to have a .net reference to P4
I partially managed to do that with a specific project reference in the csproj :
<ProjectReference Include="..\P4\P4.csproj">
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
<OutputItemType>Content</OutputItemType>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<Targets>Build;DebugSymbolsProjectOutputGroup</Targets>
</ProjectReference>
But this solution does only add P4 and not the dependencies (P3 and N1)
Does anyone knows how to do that ?
Thanks