Yes.
The metapackages Microsoft.AspNetCore.App
and Microsoft.AspNetCore.All
require netcoreapp
, but the they are just a collection of other packages to install.
If you install the individual packages in the metapackage, it'll work fine, just like you currently have with 2.0
Your .csproj file will end up looking similar to this...
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net471</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="2.1.1" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.1.1" />
<PackageReference Include="Microsoft.AspNetCore.Antiforgery" Version="2.1.1" />
<PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.1.1" />
...
Just notice that some packages, eg. Microsoft.AspNetCore.Http.Connections
are not tagged to 2.1.1, so you need to make sure you match the versions from the metapackage constraints.