-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[release/10.0] Switch back to net8.0 for tools #37207
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
base: release/10.0
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR switches the EF Core tools back to targeting .NET 8.0 (from .NET 10.0) on the release/10.0 branch by replacing $(DefaultNetCoreTargetFramework) with $(NetToolMinimum) and $(NetToolCurrent) properties. The changes update project target frameworks and package manifests to reference net8.0 instead of net10.0.
Key changes:
- Update tool projects to use
$(NetToolMinimum)instead of$(DefaultNetCoreTargetFramework) - Update hardcoded framework version strings from
net10.0tonet8.0in code and scripts - Update NuGet package specifications to use the new MSBuild properties
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/ef/ef.csproj | Changed TargetFrameworks from $(DefaultNetCoreTargetFramework) to $(NetToolMinimum) |
| src/dotnet-ef/dotnet-ef.nuspec | Updated target paths to use lowercase $targetFramework$ variable; contains a typo on line 19 |
| src/dotnet-ef/dotnet-ef.csproj | Changed TargetFramework from $(DefaultNetCoreTargetFramework) to $(NetToolMinimum) |
| src/dotnet-ef/RootCommand.cs | Updated preprocessor directive from NET10_0 to NET8_0 and hardcoded path from net10.0 to net8.0 |
| src/EFCore.Tools/tools/EntityFrameworkCore.psm1 | Updated ef.dll path from net10.0 to net8.0 |
| src/EFCore.Tools/EFCore.Tools.csproj | Changed TargetFramework from $(DefaultNetCoreTargetFramework) to $(NetToolMinimum) |
| src/EFCore.Tasks/EFCore.Tasks.nuspec | Updated to use $(NetToolCurrent) and $(NetToolMinimum) properties; contains inconsistency on line 20 |
| src/EFCore.Tasks/EFCore.Tasks.csproj | Changed TargetFrameworks to use $(NetToolCurrent) and added NuspecProperty entries for both new properties |
Co-authored-by: Copilot <[email protected]>
|
cc @artl93 |
|
Last week we talked about getting more coverage on these scenarios by testing htem ourselves. Do we know if this is the end of targeting concerns? |
Fixes #37201
Description
The tools switched to target net10.0, but they need to be compatible with the older supported TFMs.
Customer impact
Exception when trying to use the EF tools on a project targeting net8.0 or net9.0
How found
Customer reported on 10.0.0
Regression
Yes, from 9.0.0. Introduced in #35488
Testing
Tested manually
Risk
Low, only design-time tools are affected by the change.