Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to upgrade project from ef core beta 3 to prod

user5716448Jul 30 2019 — edited Jul 30 2019

Hi,

noticed ef core for oracle now in production and started to try and upgrade ef core oracle beta to prod

ran below but got message about 2.2.4

dotnet add package Oracle.EntityFrameworkCore --version 2.19.30

How can we best upgrade?

How do we move from 2.1 netcoreapp2.1 to 2.2.4?

get message

C:\Program Files\dotnet\sdk\2.1.403\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(137,5): error NETSDK1045: The current .NET SDK does not support targeting .NET Core 2.2. Either target .NET Core 2.1 or lower, or use a version of the .NET SDK that supports .NET Core 2.2. [D:\RazorCRUD\RazorCRUD.csproj]

if simply try change .csproj file from 2.1 to 2.2

orig .csproj before trying to upgrade

<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.EntityFrameworkCore.Design" Version="2.1.1" />

   <PackageReference Include="Microsoft.EntityFrameworkCore.SQLite" Version="2.1.1" />

   <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.1.1" />

   <PackageReference Include="Oracle.EntityFrameworkCore" Version="2.18.0-beta3" />

  </ItemGroup>


</Project>

Thanks

Comments
Post Details
Added on Jul 30 2019
0 comments
596 views