2017-04-10 11:41:01 +00:00
|
|
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<Import Project="..\Microsoft.Private.PackageBaseline\Microsoft.Private.PackageBaseline.props" />
|
2018-08-07 15:19:03 +00:00
|
|
|
|
2017-04-10 11:41:01 +00:00
|
|
|
<PropertyGroup>
|
|
|
|
<!-- Set PackageIndexFile to point to our local repo's index. This tells the packaging targets
|
|
|
|
which index should be used for updates -->
|
|
|
|
<PackageIndexFile>$(MSBuildThisFileDirectory)..\Microsoft.Private.PackageBaseline\packageIndex.json</PackageIndexFile>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2018-08-07 15:19:03 +00:00
|
|
|
<!--
|
|
|
|
Below targets should moved to packaging.targets in BuildTools but keeping in corefx for convenience right now
|
|
|
|
-->
|
|
|
|
|
2017-08-21 15:34:15 +00:00
|
|
|
<Target Name="BlockStable" Condition="'$(BlockStable)' == 'true'" AfterTargets="CalculatePackageVersion">
|
2018-08-07 15:19:03 +00:00
|
|
|
<!-- DO NOT ship this packages as stable -->
|
2017-08-21 15:34:15 +00:00
|
|
|
<Error Condition="!$(PackageVersion.Contains('-'))" Text="Package $(Id) should not be built stable" />
|
|
|
|
</Target>
|
2018-08-07 15:19:03 +00:00
|
|
|
|
|
|
|
<!-- Get the package version if it isn't marked as block stable -->
|
|
|
|
<Target Name="GetPackageIdentityIfStable"
|
|
|
|
Returns="@(_StablePackageIdentity)">
|
|
|
|
|
|
|
|
<ItemGroup Condition="'$(BlockStable)' != 'true'">
|
|
|
|
<_StablePackageIdentity Include="$(Id)">
|
|
|
|
<Version>$(PackageVersion)</Version>
|
|
|
|
</_StablePackageIdentity>
|
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
2017-04-10 11:41:01 +00:00
|
|
|
</Project>
|