Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 53dcff5

Browse files
committed
Adding a version property with the CLI version and a private preview property to BundledVersions.
1 parent 594630f commit 53dcff5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build/MSBuildExtensions.targets

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@
117117
<_NETCoreAppTargetFrameworkVersion>$(_NETCoreAppPackageVersion.Split('.')[0]).$(_NETCoreAppPackageVersion.Split('.')[1])</_NETCoreAppTargetFrameworkVersion>
118118
<_NETStandardTargetFrameworkVersion>$(_NETStandardLibraryPackageVersion.Split('.')[0]).$(_NETStandardLibraryPackageVersion.Split('.')[1])</_NETStandardTargetFrameworkVersion>
119119

120+
<_NETCoreSdkIsPreview Condition=" '$(DropSuffix)' == '' ">true</_NETCoreSdkIsPreview>
121+
120122
<BundledVersionsPropsContent>
121123
<![CDATA[
122124
<!--
@@ -137,6 +139,8 @@ Copyright (c) .NET Foundation. All rights reserved.
137139
<BundledNETStandardTargetFrameworkVersion>$(_NETStandardTargetFrameworkVersion)</BundledNETStandardTargetFrameworkVersion>
138140
<BundledNETStandardPackageVersion>$(_NETStandardLibraryPackageVersion)</BundledNETStandardPackageVersion>
139141
<BundledNETCorePlatformsPackageVersion>$(_NETCorePlatformsPackageVersion)</BundledNETCorePlatformsPackageVersion>
142+
<NETCoreSdkVersion>$(SdkVersion)</NETCoreSdkVersion>
143+
<_NETCoreSdkIsPreview>$(_NETCoreSdkIsPreview)</_NETCoreSdkIsPreview>
140144
</PropertyGroup>
141145
</Project>
142146
]]>

0 commit comments

Comments
 (0)