|
|
@@ -81,9 +81,12 @@
|
|
|
|
|
|
<ItemGroup>
|
|
|
<KnownFrameworkReference Update="Microsoft.NETCore.App">
|
|
|
- <LatestRuntimeFrameworkVersion>$(MicrosoftNETCoreAppPackageVersion)</LatestRuntimeFrameworkVersion>
|
|
|
- <DefaultRuntimeFrameworkVersion Condition="'$(IsServicingBuild)' != 'true'">$(MicrosoftNETCoreAppPackageVersion)</DefaultRuntimeFrameworkVersion>
|
|
|
- <TargetingPackVersion Condition="'$(IsServicingBuild)' != 'true'">$(MicrosoftNETCoreAppPackageVersion)</TargetingPackVersion>
|
|
|
+ <!-- Always update the 'latest version', whether the repo is servicing or not. -->
|
|
|
+ <LatestRuntimeFrameworkVersion Condition="'%(TargetFramework)' == '$(DefaultNetCoreTargetFramework)'">$(MicrosoftNETCoreAppPackageVersion)</LatestRuntimeFrameworkVersion>
|
|
|
+ <!-- Only update the default runtime version for preview builds. -->
|
|
|
+ <DefaultRuntimeFrameworkVersion Condition="'%(TargetFramework)' == '$(DefaultNetCoreTargetFramework)' and '$(IsServicingBuild)' != 'true'">$(MicrosoftNETCoreAppPackageVersion)</DefaultRuntimeFrameworkVersion>
|
|
|
+ <!-- Only update the targeting pack version for preview builds. -->
|
|
|
+ <TargetingPackVersion Condition="'%(TargetFramework)' == '$(DefaultNetCoreTargetFramework)' and '$(IsServicingBuild)' != 'true'">$(MicrosoftNETCoreAppPackageVersion)</TargetingPackVersion>
|
|
|
</KnownFrameworkReference>
|
|
|
|
|
|
<KnownFrameworkReference Condition="'$(UseAspNetCoreSharedRuntime)' != 'true'" Remove="Microsoft.AspNetCore.App" />
|
|
|
@@ -95,6 +98,10 @@
|
|
|
<TargetingPackVersion Condition="'$(IsServicingBuild)' != 'true'">$(SharedFxVersion)</TargetingPackVersion>
|
|
|
</KnownFrameworkReference>
|
|
|
|
|
|
+ <KnownFrameworkReference Update="NETStandard.Library">
|
|
|
+ <TargetingPackVersion Condition="'%(TargetFramework)' == 'netstandard2.1' and '$(IsServicingBuild)' != 'true'">$(NETStandardLibraryRefPackageVersion)</TargetingPackVersion>
|
|
|
+ </KnownFrameworkReference>
|
|
|
+
|
|
|
</ItemGroup>
|
|
|
|
|
|
<!-- Copied from https://github.com/dotnet/arcade/blob/9d0fd805448082c8d55e2434607b481bca70a146/src/Microsoft.DotNet.Arcade.Sdk/tools/RepositoryInfo.targets#L12-L38 -->
|