-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Bundle-Migration "failed to restore project" or "it was not possible to find any compatible framework version" #27317
Comments
/cc @bricelam |
Possible duplicate of #16882. @StephanBis Can you post your csproj? |
Hello! Sorry to hijack, but my team has been running into this problem this week. This is our csproj.
We have tried removing both the DotNetCliToolReference Item Group and the Microsoft.EntityFrameworkCore.Tools.DotNet PackageReference along with many other random attempts. Note: Our startup project is a separate project, this project has a single DbContext which is the only DbContext in the solution |
@krsnider This: <PackageReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.3" /> is an extremely old and obsolete package. It was replaced by the Note for triage: the package is already listed as obsolete here: https://docs.microsoft.com/en-us/ef/core/what-is-new/nuget-packages |
Sorry for the late reaction. Our database .csproj
Our startup project
As you can see we are not using the above mentioned |
@bricelam cc |
Related to #27385 (comment)? |
Any update on this? I see that this is added to the 7.0.0 milestone. |
@StephanBis We don't yet understand what is going on here. The plan is to investigate and hopefully fix in 7.0 if we find the root cause. The workaround for now is to install .NET 2.x where needed. |
This may have been fixed by PR #27671 |
We're trying to get the Bundle-Migration to work so we can integrate migrations in our CI/CD pipelines. We are however facing some issues.
When using the dotnet CLI, we're getting the following error
When using the Package Manager Console Bundle-Migration command
We do not understand why the dotnet CLI is complaining about .NET Core 2.0.0 as we are not referencing any packages that require this framework.
On the other hand our projects restore and build just fine, no issues. So we also do not quite understand why ef-tools cannot restore some projects.
Versions:
The text was updated successfully, but these errors were encountered: