Add TFM compatibility check to 2.1 metapackage

This commit is contained in:
= 2018-01-11 12:33:40 -08:00
parent 4bbd0bc530
commit 1c4d23f79d
2 changed files with 8 additions and 0 deletions

View File

@ -24,6 +24,7 @@
<ItemGroup>
<Content Include="build\$(TargetFramework)\*.props" PackagePath="%(Identity)" />
<Content Include="build\$(TargetFramework)\*.targets" PackagePath="%(Identity)" />
<Content Include="lib\$(TargetFramework)\_._" PackagePath="%(Identity)" />
</ItemGroup>

View File

@ -0,0 +1,7 @@
<Project InitialTargets="EnsureTFMCompatibility">
<Target Name="EnsureTFMCompatibility">
<Error
Text="This version of Microsoft.AspNetCore.All is only compatible with the netcoreapp2.1 target framework."
Condition="'$(TargetFramework)' != 'netcoreapp2.1'"/>
</Target>
</Project>