Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric St. John <ericstj@microsoft.com>2017-04-13 20:50:55 +0300
committerEric St. John <ericstj@microsoft.com>2017-04-13 21:04:21 +0300
commit5e28c1b2afbb9e29ad24253989030b6ce71d1622 (patch)
tree0c5a200bc04f317cf43ea97fd045a9965e240c28 /pkg/baseline
parent8697c0b31f61e48a423f484b3e383bfd96193f1e (diff)
Add a safegaurd to not mark System.Memory stable
We don't want to ship this package as stable in 2.0. This change just adds an extra safegaurd to avoid that. It's just code so folks can still delete it, but it adds an extra hurdle that will be more likely to be caught in code review.
Diffstat (limited to 'pkg/baseline')
-rw-r--r--pkg/baseline/baseline.props6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/baseline/baseline.props b/pkg/baseline/baseline.props
index 08bb474e18..5a8a7d521e 100644
--- a/pkg/baseline/baseline.props
+++ b/pkg/baseline/baseline.props
@@ -7,6 +7,8 @@
<PackageIndexFile>$(MSBuildThisFileDirectory)..\Microsoft.Private.PackageBaseline\packageIndex.json</PackageIndexFile>
</PropertyGroup>
- <!-- make RestorePackages run before HarvestStablePackage to ensure we'll restore the baseline before harvesting -->
- <Target Name="EnsureRestore" BeforeTargets="HarvestStablePackage" DependsOnTargets="RestorePackages" />
+ <Target Name="BlockStable" Condition="'$(BlockStable)' == 'true'" AfterTargets="CalculatePackageVersion">
+ <!-- DO NOT ship this packages as stable in .NET Core 2.0. -->
+ <Error Condition="!$(PackageVersion.Contains('-'))" Text="Package $(Id) should not be built stable" />
+ </Target>
</Project>