Set NETCoreAppMaximumVersion to 3.0 so we can build with older sdk
authorWes Haggard <Wes.Haggard@microsoft.com>
Tue, 28 Aug 2018 01:02:15 +0000 (18:02 -0700)
committerWes Haggard <Wes.Haggard@microsoft.com>
Wed, 29 Aug 2018 16:38:27 +0000 (09:38 -0700)
Need to set NETCoreAppMaximumVersion to 3.0 when building a 3.0
project with the 2.x sdk.

Commit migrated from https://github.com/dotnet/corefx/commit/fcf67edf540033046715bb6079996c6345a6be3f

tools-local/targetgroups.props

index 47b391b..e97694b 100644 (file)
       <CompatibleWith>netstandard</CompatibleWith>
     </TargetGroups>
     <TargetGroups Include="netcoreapp3.0">
+      <NETCoreAppMaximumVersion>3.0</NETCoreAppMaximumVersion>
       <TargetFramework>netcoreapp3.0</TargetFramework>
       <NuGetTargetMoniker>.NETCoreApp,Version=v3.0</NuGetTargetMoniker>
       <NuGetTargetMonikerShort>netcoreapp3.0</NuGetTargetMonikerShort>
     </TargetGroups>
     <!-- netcoreapp is an alias for netcoreapp3.0 -->
     <TargetGroups Include="netcoreapp">
+      <NETCoreAppMaximumVersion>3.0</NETCoreAppMaximumVersion>
       <TargetFramework>netcoreapp3.0</TargetFramework>
       <NuGetTargetMoniker>.NETCoreApp,Version=v3.0</NuGetTargetMoniker>
       <NuGetTargetMonikerShort>netcoreapp3.0</NuGetTargetMonikerShort>
       <CompatibleWith>netstandard</CompatibleWith>
     </TargetGroups>
     <TargetGroups Include="netcoreapp3.0aot">
+      <NETCoreAppMaximumVersion>3.0</NETCoreAppMaximumVersion>
       <TargetFramework>netcoreapp3.0</TargetFramework>
       <PackageTargetRuntimeSuffix>aot</PackageTargetRuntimeSuffix>
       <NuGetTargetMoniker>.NETCoreApp,Version=v2.1</NuGetTargetMoniker>
       <CompatibleWith>netstandard</CompatibleWith>
     </TargetGroups>
     <TargetGroups Include="netcoreappaot">
+      <NETCoreAppMaximumVersion>3.0</NETCoreAppMaximumVersion>
       <TargetFramework>netcoreapp3.0</TargetFramework>
       <PackageTargetRuntimeSuffix>aot</PackageTargetRuntimeSuffix>
       <NuGetTargetMoniker>.NETCoreApp,Version=v3.0</NuGetTargetMoniker>