Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not install package 'Microsoft.EntityFrameworkCore 3.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.8' #17999

Closed
OpenSpacesAndPlaces opened this issue Sep 23, 2019 · 10 comments
Labels
closed-no-further-action The issue is closed and no further action is planned. customer-reported

Comments

@OpenSpacesAndPlaces
Copy link

Update from 2.1.4 to 3.0.0

Could not install package 'Microsoft.EntityFrameworkCore 3.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.8', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Steps to reproduce

Update to Microsoft.EntityFrameworkCore 3.0.0 via Visual Studio 2019 Nuget

Further technical details

EF Core version: 2.1.4 -> 3.0.0
Database provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Target framework: .Net Framework 4.8
IDE: Visual Studio 2019

@OpenSpacesAndPlaces
Copy link
Author

I found the issue:
https://devblogs.microsoft.com/dotnet/announcing-net-standard-2-1/

"Given many of the API additions in .NET Standard 2.1 require runtime changes in order to be meaningful, .NET Framework 4.8 will remain on .NET Standard 2.0 rather than implement .NET Standard 2.1. .NET Core 3.0 as well as upcoming versions of Xamarin, Mono, and Unity will be updated to implement .NET Standard 2.1."

Closing thread.

@bricelam
Copy link
Contributor

@OpenSpacesAndPlaces Are you considering migrating to .NET Core 3.0? What kind of app is it?

@OpenSpacesAndPlaces
Copy link
Author

Eventually yes - but for now we're stuck on framework.

Mostly I'm just confused because I thought the whole point of .NET Standard was to maintain cross-compatibility.

@OpenSpacesAndPlaces
Copy link
Author

OpenSpacesAndPlaces commented Sep 26, 2019

@bricelam Also to be clear- we've be using EF Core on .Net Framework for over a year in production sites (not some new thing for fun just this week)

@bricelam
Copy link
Contributor

I'm sure you already know this, but EF Core 2.1 will continue to be supported on .NET Framework for some time.

Out of curiosity, what parts of .NET Framework are you using that aren't in .NET Core 3.0 or the Windows Compatibility Pack? (or in the upcoming CoreWCF project)

@OpenSpacesAndPlaces
Copy link
Author

Primarily it's a boatload of webforms code that's the blocker.

@bricelam
Copy link
Contributor

☹ My sympathy. The path forward for webforms is not an easy one

@bricelam
Copy link
Contributor

bricelam commented Sep 27, 2019

Do you want to submit a new feature request for us to target netstandard2.0 again? We discussed the possibility today from a technical standpoint. I'd like to see how much community interest there is.

@OpenSpacesAndPlaces
Copy link
Author

Where would I do that?

Either flipping EF Core 3.0 back to netstandard2.0 or making something like a .Net Framework 4.8.1 with netstandard2.1 support, or even another Nuget package that would shim netstandard2.1 in, would be great.

@bricelam
Copy link
Contributor

Just submit a new issue requesting that you’d like EF Core 3 to target .NET Standard 2.0. I think this is important for .NET Framework and also older versions of Xamarin, UWP, and Unity.

@ajcvickers ajcvickers added customer-reported closed-no-further-action The issue is closed and no further action is planned. labels Oct 11, 2019
@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-no-further-action The issue is closed and no further action is planned. customer-reported
Projects
None yet
Development

No branches or pull requests

3 participants