30 lines
1.3 KiB
Plaintext
Raw Normal View History

<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\Microsoft.Private.PackageBaseline\Microsoft.Private.PackageBaseline.props" />
<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>
<!--
Below targets should moved to packaging.targets in BuildTools but keeping in corefx for convenience right now
-->
<Target Name="BlockStable" Condition="'$(BlockStable)' == 'true'" AfterTargets="CalculatePackageVersion">
<!-- DO NOT ship this packages as stable -->
<Error Condition="!$(PackageVersion.Contains('-'))" Text="Package $(Id) should not be built stable" />
</Target>
<!-- 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>
</Project>