forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.targets
31 lines (26 loc) · 1.39 KB
/
Directory.Build.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<Project>
<PropertyGroup>
<InstallerName>$(InstallerName)</InstallerName>
<ArchiveName Condition="'$(PgoInstrument)' != ''">$(ArchiveName)-pgo</ArchiveName>
</PropertyGroup>
<!-- Libraries might be built with a different Configuration,,
make sure we honor that when building ProjectReferences. -->
<Target Name="UpdateLibrariesProjectReferenceConfiguration" AfterTargets="IncludeTransitiveProjectReferences">
<FindUnderPath Files="@(ProjectReference)" Path="$(LibrariesProjectRoot)">
<Output TaskParameter="InPath" ItemName="LibrariesProjectReference" />
</FindUnderPath>
<ItemGroup>
<ProjectReference Remove="@(LibrariesProjectReference)" />
<ProjectReference Include="@(LibrariesProjectReference)" SetConfiguration="Configuration=$(LibrariesConfiguration)"/>
</ItemGroup>
</Target>
<!--
Import stubs for compatibility with packaging tools, if not building a pkgproj. Ordinarily,
listing this before the ../Directory.Build.targets import would be sufficient, but the packaging
tools targets are already imported before this file.
-->
<Import Project="packaging.stubs.targets" Condition="'$(MSBuildProjectExtension)' != '.pkgproj'" />
<Import Project="..\..\Directory.Build.targets" />
<!-- Provide default targets which can be hooked onto or overridden as necessary -->
<Target Name="Pack" DependsOnTargets="Build" />
</Project>