<AssemblyVersion>0.2.0.0</AssemblyVersion>
<StrongNameKeyId>Open</StrongNameKeyId>
<!-- This is a preview package. Do not mark as stable. -->
- <BlockStable>true</BlockStable>
+ <SuppressFinalPackageVersion>true</SuppressFinalPackageVersion>
+ <IsShippingAssembly>false</IsShippingAssembly>
</PropertyGroup>
</Project>
<PropertyGroup>
<!-- we need to be supported on pre-nuget-3 platforms (Dev12, Dev11, etc) -->
<MinClientVersion>2.8.6</MinClientVersion>
- <IsShipping>false</IsShipping>
</PropertyGroup>
<ItemGroup>
<!-- We don't include the reference project for two reasons:
<Import Project="..\Directory.Build.props" />
<PropertyGroup>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
- <!-- DO NOT ship this as stable. It contains preview-only APIs that will be stable in a future version. -->
- <BlockStable>true</BlockStable>
<StrongNameKeyId>Open</StrongNameKeyId>
</PropertyGroup>
</Project>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<!-- System.Memory uses the Open key, so we will also. -->
<StrongNameKeyId>Open</StrongNameKeyId>
- <!-- This is a preview package. Do not ship as stable. -->
- <BlockStable>true</BlockStable>
</PropertyGroup>
</Project>
</ItemGroup>
<PropertyGroup>
- <!-- BlockStable on private packages by default -->
- <BlockStable Condition="'$(BlockStable)' == '' and $(MSBuildProjectName.Contains('Private'))">true</BlockStable>
+ <!-- SuppressFinalPackageVersion on private packages by default -->
+ <SuppressFinalPackageVersion Condition="'$(SuppressFinalPackageVersion)' == '' and $(MSBuildProjectName.Contains('Private'))">true</SuppressFinalPackageVersion>
</PropertyGroup>
</Project>
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">
+ <Target Name="BlockStable" Condition="'$(SuppressFinalPackageVersion)' == 'true'" AfterTargets="CalculatePackageVersion">
<!-- DO NOT ship this packages as stable -->
<Error Condition="!$(PackageVersion.Contains('-'))" Text="Package $(Id) should not be built stable" />
</Target>
<Target Name="GetPackageIdentityIfStable"
Returns="@(_StablePackageIdentity)">
- <ItemGroup Condition="'$(BlockStable)' != 'true'">
+ <ItemGroup Condition="'$(SuppressFinalPackageVersion)' != 'true'">
<_StablePackageIdentity Include="$(Id)">
<Version>$(PackageVersion)</Version>
</_StablePackageIdentity>