Skip to content

Commit ee99d7c

Browse files
committed
Fix InformationalVersion in corelib generators
1 parent 19f895d commit ee99d7c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libraries/System.Private.CoreLib/gen/System.Private.CoreLib.Generators.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
<PropertyGroup>
33
<TargetFramework>netstandard2.0</TargetFramework>
44
<NoWarn>$(NoWarn);CS3001</NoWarn>
5+
<!-- Override InformationalVersion during servicing as it's returned via public api. -->
6+
<InformationalVersion Condition="'$(PreReleaseVersionLabel)' == 'servicing'">$(ProductVersion)</InformationalVersion>
7+
<InformationalVersion Condition="'$(StabilizePackageVersion)' == 'true'">$(ProductVersion)</InformationalVersion>
58
</PropertyGroup>
69

710
<ItemGroup>

0 commit comments

Comments
 (0)