forked from dotnet/corefx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.targets
30 lines (25 loc) · 1.27 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
<Project>
<Import Condition="'$(IsFrameworkPackage)' == 'true'" Project="frameworkPackage.targets" />
<Import Project="..\Directory.Build.targets" />
<Target Name="ApplyBaselineToStaticDependencies"
BeforeTargets="AssignPkgProjPackageDependenciesTargetFramework"
Condition="'@(Dependency)' != ''">
<ApplyBaseLine OriginalDependencies="@(Dependency)"
BaseLinePackages="@(BaseLinePackage)"
PackageIndexes="@(PackageIndex)"
Apply="$(BaseLinePackageDependencies)">
<Output TaskParameter="BaseLinedDependencies" ItemName="_BaseLinedStaticDependencies" />
</ApplyBaseLine>
<ApplyPreReleaseSuffix Condition="'@(_BaseLinedStaticDependencies)' != ''"
OriginalPackages="@(_BaseLinedStaticDependencies)"
StablePackages="@(StablePackage)"
PackageIndexes="@(PackageIndex)"
PreReleaseSuffix="-$(VersionSuffix)">
<Output TaskParameter="UpdatedPackages" ItemName="_SuffixedStaticDependencies"/>
</ApplyPreReleaseSuffix>
<ItemGroup>
<Dependency Remove="@(Dependency)" />
<Dependency Include="@(_SuffixedStaticDependencies)" />
</ItemGroup>
</Target>
</Project>