Add conditions to workarounds in TemplateTests.props
This commit is contained in:
parent
28c46645d2
commit
3ad85f984d
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue