Add conditions to workarounds in TemplateTests.props

This commit is contained in:
wtgodbe 2019-09-25 15:32:42 -07:00
parent 28c46645d2
commit 3ad85f984d
1 changed files with 2 additions and 9 deletions

View File

@ -9,12 +9,14 @@
<ItemGroup>
<KnownFrameworkReference
Condition="'%(KnownFrameworkReference.TargetFramework)' == '${DefaultNetCoreTargetFramework}'
Update="Microsoft.NETCore.App"
DefaultRuntimeFrameworkVersion="${MicrosoftNETCoreAppRuntimeVersion}"
LatestRuntimeFrameworkVersion="${MicrosoftNETCoreAppRuntimeVersion}"
TargetingPackVersion="${MicrosoftNETCoreAppRefPackageVersion}" />
<KnownFrameworkReference
Condition="'%(KnownFrameworkReference.TargetFramework)' == '${DefaultNetCoreTargetFramework}'
Update="Microsoft.AspNetCore.App"
TargetFramework="${DefaultNetCoreTargetFramework}"
DefaultRuntimeFrameworkVersion="${MicrosoftAspNetCoreAppRuntimePackageVersion}"
@ -23,15 +25,6 @@
RuntimePackRuntimeIdentifiers="${SupportedRuntimeIdentifiers}" />
</ItemGroup>
<!-- This can be removed after we update our build to use .NET Core Preivew7 SDK or newer. (Needs https://github.com/dotnet/core-sdk/pull/2401) -->
<ItemGroup>
<KnownFrameworkReference
Update="Microsoft.NETCore.App"
RuntimePackNamePatterns="Microsoft.NETCore.App.Runtime.**RID**"
AppHostPackNamePattern=""
AppHostRuntimeIdentifiers="" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Net.Compilers.Toolset"
Version="${MicrosoftNetCompilersToolsetPackageVersion}"