csproj TargetFramework, , , dotnet --info.
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>
PackageReference csproj.
Use NuGet to update links to packages above. For your information, I just use the tools in VS or Rider, but after updating the package version in NuGet, here is the result.
new
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.2.0" PrivateAssets="All" />
</ItemGroup>
I know this can take a long time, however I did not find any automatic way, at least for this date.
You will obviously need to transfer / fix any changes to the library your code relies on.
source
share