Skip to content

Commit 84be767

Browse files
authored
Port 2.2.0-preview3 version infrastructure to 2.1 (#825)
1 parent 7147c87 commit 84be767

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

dependencies.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
<MicrosoftNETSdkRazorPackageVersion>2.1.2</MicrosoftNETSdkRazorPackageVersion>
2828
</PropertyGroup>
2929

30+
<!-- Build stabilization properties as passed in by ProdCon. -->
31+
<PropertyGroup>
32+
<UseStableVersions Condition="'$(UseStableVersions)' == ''">true</UseStableVersions>
33+
<VersionStamp Condition="'$(VersionStamp)' == ''"></VersionStamp>
34+
</PropertyGroup>
35+
3036
<ItemGroup>
3137
<!-- Get ILAsm tool version from CoreCLR. -->
3238
<RemoteDependencyBuildInfo Include="CoreClr">

repos/cli.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100

101101
<!-- Produce stable versions for RTM only. When https://github.com/dotnet/source-build/issues/550
102102
is fixed we will be able to determine this automatically. -->
103-
<EnvironmentVariables Include="DropSuffix=true" />
103+
<EnvironmentVariables Include="DropSuffix=$(UseStableVersions)" />
104104
</ItemGroup>
105105

106106
<Target Name="AddProdConFeed" BeforeTargets="Build" DependsOnTargets="GetProdConBlobFeedUrl">

repos/dir.props

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@
4242
<ProjectBuildReason Condition="'$(OfflineBuild)' == 'true'">$(ProjectBuildReason) in tarball</ProjectBuildReason>
4343
</PropertyGroup>
4444

45-
<!-- for RTM only, default to stabilized builds because that's what matches the official builds -->
46-
<!-- once https://github.com/dotnet/source-build/issues/550 is fixed we will be able to determine this automatically -->
47-
<PropertyGroup>
48-
<UseStableVersions Condition="'$(UseStableVersions)' == ''">true</UseStableVersions>
49-
</PropertyGroup>
50-
5145
<ItemGroup>
5246
<EnvironmentVariables Include="DOTNET_TOOL_DIR=$(DotNetCliToolDir)" />
5347
<EnvironmentVariables Include="BUILD_TOOLS_TOOL_DIR=$(ProjectDir)Tools/" />
@@ -58,9 +52,12 @@
5852
<EnvironmentVariables Include="DotNetBuildOffline=true" Condition="'$(OfflineBuild)' == 'true'" />
5953
<EnvironmentVariables Include="DotNetCoreSdkDir=$(DotNetCliToolDir)" />
6054
<EnvironmentVariables Include="DotNetBuildToolsDir=$(ProjectDir)Tools/" />
55+
6156
<EnvironmentVariables Include="StabilizePackageVersion=$(UseStableVersions)" Condition="'$(UseStableVersions)' != ''" />
6257
<EnvironmentVariables Include="PB_IsStable=$(UseStableVersions)" Condition="'$(UseStableVersions)' != ''" />
58+
6359
<EnvironmentVariables Include="PackageVersionStamp=$(VersionStamp)" Condition="'$(VersionStamp)' != ''" />
60+
<EnvironmentVariables Include="PB_VersionStamp=$(VersionStamp)" Condition="'$(VersionStamp)' != ''" />
6461

6562
<!-- If MSBuild exits early, make sure debug output like 'MSBuild_*.failure.txt' ends up in a place we can see it. -->
6663
<EnvironmentVariables Include="MSBUILDDEBUGPATH=$(MSBuildDebugPathTargetDir)" />

0 commit comments

Comments
 (0)