Add TFM compatibility check to 2.1 metapackage
This commit is contained in:
parent
4bbd0bc530
commit
1c4d23f79d
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
Loading…
Reference in New Issue