<Project>
  <!--
    This property instructs the .NET Core SDK to treat this package as the shared framework platform.
    This affects how the SDK will trim references and publish output, determines how the runtimeconfig
    files are generated, and may affect how optimizations are preformed by other tools.

    NB: this is _AspNetCore*App*SharedFxIsEnabled, not _AspNetCore*All*SharedFxIsEnabled
  -->
  <PropertyGroup Condition=" '$(_AspNetCoreAppSharedFxIsEnabled)' == 'true' ">
    <MicrosoftNETPlatformLibrary>Microsoft.AspNetCore.App</MicrosoftNETPlatformLibrary>
  </PropertyGroup>

  <Target Name="EnsureTFMCompatibility" BeforeTargets="_CheckForInvalidConfigurationAndPlatform">
    <Error
      Text="This version of Microsoft.AspNetCore.App is only compatible with the netcoreapp2.1 target framework. Please target netcoreapp2.1 or choose a version of Microsoft.AspNetCore.App compatible with $(TargetFramework)."
      Condition="'$(TargetFramework)' != 'netcoreapp2.1'"/>
  </Target>
</Proje