0

I downloaded and installed the latest .NetCore SDK (2.2.203) to use in my Entity Framework with Razor pages project. My project was created using the NetCore 2.1 SDK.

In my csproj file, I see these references.

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp2.1</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.App" />
    <PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.1.2" PrivateAssets="All" />
    <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.1.1" />
    <PackageReference Include="PagedList.Mvc" Version="4.5.0" />
    <PackageReference Include="System.ServiceModel.Duplex" Version="4.4.*" />
    <PackageReference Include="System.ServiceModel.Http" Version="4.4.*" />
    <PackageReference Include="System.ServiceModel.NetTcp" Version="4.4.*" />
    <PackageReference Include="System.ServiceModel.Security" Version="4.4.*" />
  </ItemGroup>

  <ItemGroup>
    <WCFMetadata Include="Connected Services" />
  </ItemGroup>

</Project>

I changeed this line:

 <TargetFramework>netcoreapp2.1</TargetFramework>

to netcoreapp.2.2, but then I get this error:

The current .NET SDK does not support targeting .NET core 2.2.

How can I upgrade my project to the lastest NetCore and Entity Framework versions?

THanks!

SkyeBoniwell
  • 6,345
  • 12
  • 81
  • 185

0 Answers0