Skip to content

Target net8.0 instead of net6.0#2403

Open
Copilot wants to merge 1 commit intomainfrom
copilot/target-net80-instead-of-net60
Open

Target net8.0 instead of net6.0#2403
Copilot wants to merge 1 commit intomainfrom
copilot/target-net80-instead-of-net60

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 4, 2026

net6.0 is EOL; bump the ef6 tool and EntityFramework.NuGet packaging to target net8.0.

Changes

  • ef6.csprojTargetFrameworks: net6.0;net40;net45net8.0;net40;net45
  • EntityFramework.NuGet.csprojTargetFrameworks and ItemGroup condition updated to net8.0
  • EntityFramework.NuGet.nuspec — tool artifact paths updated: tools/net6.0/any/tools/net8.0/any/
  • build/net6.0/ / buildTransitive/net6.0/ — directories renamed to net8.0; import paths inside updated accordingly
  • EntityFramework6.psm1 — hardcoded ef6.dll path updated to net8.0\any\ef6.dll

Agent-Logs-Url: https://github.com/dotnet/ef6/sessions/4eda9619-131a-40c9-9b63-af1987a77e41

Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI left a 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 retargets the EF6 command-line/tooling assets from .NET 6 to .NET 8 so the packaged tooling in EntityFramework stays on a supported runtime while keeping the rest of the package layout aligned.

Changes:

  • Retargets the ef6 tool project and the NuGet packaging project from net6.0 to net8.0.
  • Updates NuGet package tool paths and the PMC PowerShell launcher to use tools/net8.0/any/.
  • Renames the framework-specific build and buildTransitive wrapper assets from net6.0 to net8.0.

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/EntityFramework.NuGet/tools/EntityFramework6.psm1 Updates the PMC launcher to invoke the net8.0 tool assembly.
src/EntityFramework.NuGet/EntityFramework.NuGet.nuspec Repoints packaged tool artifacts from tools/net6.0 to tools/net8.0.
src/EntityFramework.NuGet/EntityFramework.NuGet.csproj Retargets the packaging project and updates the conditional build-tasks reference.
src/EntityFramework.NuGet/buildTransitive/net8.0/EntityFramework.targets Renamed transitive wrapper target import for the new TFM folder.
src/EntityFramework.NuGet/buildTransitive/net8.0/EntityFramework.props Renamed transitive wrapper props import for the new TFM folder.
src/EntityFramework.NuGet/build/net8.0/EntityFramework.targets Adds the net8-specific build wrapper target import.
src/EntityFramework.NuGet/build/net8.0/EntityFramework.props Adds the net8-specific props wrapper that enables runtime config generation.
src/ef6/ef6.csproj Retargets the EF6 tool project from net6.0 to net8.0.
Comments suppressed due to low confidence (1)

src/EntityFramework.NuGet/buildTransitive/net8.0/EntityFramework.props:2

  • This transitive props asset is now scoped to net8.0+, so downstream net6.0/net7.0 projects that only receive EF6 transitively will stop importing the runtime-config generation tweak. Those projects can still restore the package through the netstandard2.1 library asset, but PMC commands against class libraries will regress because no <project>.runtimeconfig.json is produced.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/EntityFramework.NuGet/tools/EntityFramework6.psm1
@AndriySvyryd AndriySvyryd marked this pull request as ready for review May 4, 2026 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants