Skip to content

Commit 0ce623b

Browse files
authored
Have dev packages produce non-stable package versions. (#4662)
1 parent e51e809 commit 0ce623b

File tree

12 files changed

+46
-7
lines changed

12 files changed

+46
-7
lines changed

eng/MSBuild/ProjectStaging.targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
<!-- Amend the description based on stage -->
1919
<PropertyGroup>
20-
<Description Condition="'$(Stage)' == 'dev'">DEVELOPMENT BUILD - DO NOT USE IN PRODUCTION - $(Description)</Description>
2120
<Description Condition="'$(Stage)' == 'obsolete'">OBSOLETE PACKAGE - $(Description)</Description>
2221
</PropertyGroup>
2322

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<!--
1313
When DotNetFinalVersionKind is set to 'release', this branch will produce stable outputs for 'Shipping' packages
1414
-->
15-
<DotNetFinalVersionKind Condition="'$(DotNetFinalVersionKind)' == ''">release</DotNetFinalVersionKind>
15+
<DotNetFinalVersionKind Condition="'$(DotNetFinalVersionKind)' == '' And '$(Stage)' != 'dev'">release</DotNetFinalVersionKind>
1616
<!-- Enabling this rule will cause build failures on undocumented public APIs. -->
1717
<SkipArcadeNoWarnCS1591>true</SkipArcadeNoWarnCS1591>
1818
</PropertyGroup>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project>
2+
<!-- In order to get the right package versions for projects that shouldn't stabilize, we need to set this property before
3+
importing the root level Directory.Build.props file. This property should be kept in here, as opposed to moving it to
4+
the project itself. -->
5+
<PropertyGroup>
6+
<Stage>dev</Stage>
7+
</PropertyGroup>
8+
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
9+
</Project>

src/Generators/Microsoft.Gen.MetricsReports/Microsoft.Gen.MetricsReports.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
</PropertyGroup>
1212

1313
<PropertyGroup>
14-
<Stage>dev</Stage>
1514
<MinCodeCoverage>65</MinCodeCoverage>
1615
<MinMutationScore>85</MinMutationScore>
1716
</PropertyGroup>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project>
2+
<!-- In order to get the right package versions for projects that shouldn't stabilize, we need to set this property before
3+
importing the root level Directory.Build.props file. This property should be kept in here, as opposed to moving it to
4+
the project itself. -->
5+
<PropertyGroup>
6+
<Stage>dev</Stage>
7+
</PropertyGroup>
8+
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
9+
</Project>

src/Libraries/Microsoft.AspNetCore.Testing/Microsoft.AspNetCore.Testing.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
</PropertyGroup>
1313

1414
<PropertyGroup>
15-
<Stage>dev</Stage>
1615
<MinCodeCoverage>100</MinCodeCoverage>
1716
<MinMutationScore>100</MinMutationScore>
1817
</PropertyGroup>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project>
2+
<!-- In order to get the right package versions for projects that shouldn't stabilize, we need to set this property before
3+
importing the root level Directory.Build.props file. This property should be kept in here, as opposed to moving it to
4+
the project itself. -->
5+
<PropertyGroup>
6+
<Stage>dev</Stage>
7+
</PropertyGroup>
8+
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
9+
</Project>

src/Libraries/Microsoft.Extensions.Diagnostics.Probes/Microsoft.Extensions.Diagnostics.Probes.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
</PropertyGroup>
1313

1414
<PropertyGroup>
15-
<Stage>dev</Stage>
1615
<MinCodeCoverage>70</MinCodeCoverage>
1716
<MinMutationScore>75</MinMutationScore>
1817
</PropertyGroup>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project>
2+
<!-- In order to get the right package versions for projects that shouldn't stabilize, we need to set this property before
3+
importing the root level Directory.Build.props file. This property should be kept in here, as opposed to moving it to
4+
the project itself. -->
5+
<PropertyGroup>
6+
<Stage>dev</Stage>
7+
</PropertyGroup>
8+
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
9+
</Project>

src/Libraries/Microsoft.Extensions.Hosting.Testing/Microsoft.Extensions.Hosting.Testing.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
</PropertyGroup>
1414

1515
<PropertyGroup>
16-
<Stage>dev</Stage>
1716
<MinCodeCoverage>100</MinCodeCoverage>
1817
<MinMutationScore>90</MinMutationScore>
1918
</PropertyGroup>

0 commit comments

Comments
 (0)