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

Why is Package Manager trying to suggest incompatible updates? #33135

Closed
SoftCircuits opened this issue Feb 21, 2024 · 4 comments
Closed

Why is Package Manager trying to suggest incompatible updates? #33135

SoftCircuits opened this issue Feb 21, 2024 · 4 comments
Labels
closed-no-further-action The issue is closed and no further action is planned. customer-reported

Comments

@SoftCircuits
Copy link

SoftCircuits commented Feb 21, 2024

In Visual Studio, I opened the Package Manager. It tells me there are a number of updates available. So I selected them and clicked Update.

But this gives me a bunch of errors. Here are a few of them.

NU1202: Package Microsoft.EntityFrameworkCore.SqlServer 8.0.2 is not compatible with net7.0 (.NETCoreApp,Version=v7.0). Package Microsoft.EntityFrameworkCore.SqlServer 8.0.2 supports: net8.0 (.NETCoreApp,Version=v8.0)
NU1202: Package Microsoft.EntityFrameworkCore.SqlServer 8.0.2 is not compatible with net7.0 (.NETCoreApp,Version=v7.0). Package Microsoft.EntityFrameworkCore.SqlServer 8.0.2 supports: net8.0 (.NETCoreApp,Version=v8.0)
NU1202: Package Microsoft.AspNetCore.Identity.EntityFrameworkCore 8.0.2 is not compatible with net7.0 (.NETCoreApp,Version=v7.0). Package Microsoft.AspNetCore.Identity.EntityFrameworkCore 8.0.2 supports: net8.0 (.NETCoreApp,Version=v8.0)

My solution is using .NET 7.0. So why is Package Manager thinking I need version 8?

Is there no way to make this smart enough to know which updates would actually be applicable to my solution? Because, if not, it them becomes incumbent on me to know which packages are updates I need and which ones I must avoid, and I don't readily have such information!

@SoftCircuits SoftCircuits changed the title Why is Package Manager trying to install incompatible components? Why is Package Manager trying to suggest incompatible updates? Feb 21, 2024
@roji
Copy link
Member

roji commented Feb 21, 2024

@SoftCircuits this doesn't sound like something that's related to EF in any way. Try reporting this to VS, including a full project repro (the report above is very partial and doesn't provide all the required information).

@roji roji added the closed-no-further-action The issue is closed and no further action is planned. label Feb 21, 2024
@SoftCircuits
Copy link
Author

SoftCircuits commented Feb 21, 2024

@roji What do you mean? These are all EF packages. I'm trying to understand the update strategy when crossing major versions. And I've seen this many times before. It isn't specific to my current project or solution files.

And if there's a repo dedicated to Visual Studio, I can't find it.

@stevendarby
Copy link
Contributor

NuGet/Home#5725

@SoftCircuits
Copy link
Author

@stevendarby Thanks!

@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Feb 22, 2024
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

4 participants