You just have to include project_B.targets
before project_A
.
<Project DefaultTargets="Start" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="project_B.targets" />
<Import Project="project_A.targets" />
<Import Project="Common.targets" />
</Project>
I think there is a mistake in this code :
<ItemGroup>
<!-- Generates duplicates if used with Import -->
<AssembliesToDeploy Include="@(AssembliesToDeploy)" />
<AssembliesToDeploy Include="Assembly_B.dll">
<AssemblyType>SomeType</AssemblyType>
<ApplicationName>App_B</ApplicationName>
</AssembliesToDeploy>
</ItemGroup>
You are using Import
, so you if you use the code above you'll have duplicates in AssembliesToDeploy
.
madgnome
2010-06-14 11:43:02