Skip to content

Make TFM-specific package paths version-neutral - #39126

Merged
akoeplinger merged 1 commit into
mainfrom
tfm-neutral-package-assets
Sep 29, 2026
Merged

akoeplinger merged 1 commit into
mainfrom
tfm-neutral-package-assets

Conversation

@akoeplinger

Copy link
Copy Markdown
Member

Summary

  • Move TFM-specific package assets into version-neutral source directories.
  • Derive their NuGet package destinations from $(DefaultNetCoreTargetFramework).
  • Update the HierarchyId test project to import its source-tree target from the version-neutral location.

This avoids moving these files for each annual target-framework update while preserving the existing package layout.

Testing

  • . ./restore.sh && . ./activate.sh && ./build.sh -pack — passed with 0 warnings and 0 errors.
  • Verified the generated packages still contain the assets under build/net11.0, buildTransitive/net11.0, and lib/net11.0 as appropriate.

Note

This pull request description was generated with GitHub Copilot.

Derive package destinations from DefaultNetCoreTargetFramework so annual framework updates do not require moving source assets. Keep direct source-tree imports pointed at the version-neutral location.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: aab39968-c93b-478a-acee-e9f7b2eefc26
Copilot AI balanced review requested due to automatic review settings September 29, 2026 18:38
@akoeplinger
akoeplinger requested a review from a team as a code owner September 29, 2026 18:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The changes consistently preserve package layout while removing version-specific source paths.

Review effort: Balanced
Findings: None

What changed in this PR

Moves TFM-specific package assets to version-neutral source directories while preserving their net11.0 package destinations.

Changes:

  • Derives package paths from $(DefaultNetCoreTargetFramework).
  • Relocates build, build-transitive, and library assets.
  • Updates the HierarchyId test import.
File Description
test/​EFCore.SqlServer.HierarchyId.Tests/​EFCore.SqlServer.HierarchyId.Tests.csproj Imports the relocated target.
src/​EFCore/​EFCore.csproj Derives the build-transitive TFM path.
src/​EFCore/​buildTransitive/​Microsoft.EntityFrameworkCore.props Relocates the nullability property asset.
src/​EFCore.SqlServer.NTS/​EFCore.SqlServer.NTS.csproj Derives the build TFM path.
src/​EFCore.SqlServer.NTS/​build/​Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite.targets Relocates the SQL Server NTS target.
src/​EFCore.SqlServer.HierarchyId/​EFCore.SqlServer.HierarchyId.csproj Derives the build TFM path.
src/​EFCore.SqlServer.HierarchyId/​build/​Microsoft.EntityFrameworkCore.SqlServer.HierarchyId.targets Relocates the HierarchyId target.
src/​EFCore.Sqlite/​lib/​_._ Relocates the empty library marker.
src/​EFCore.Sqlite/​EFCore.Sqlite.csproj Derives the library TFM path.
src/​EFCore.Sqlite.NTS/​EFCore.Sqlite.NTS.csproj Derives the build TFM path.
src/​EFCore.Sqlite.NTS/​build/​Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuite.targets Relocates the SQLite NTS target.
src/​EFCore.Design/​EFCore.Design.csproj Derives the build TFM path.
src/​EFCore.Design/​build/​Microsoft.EntityFrameworkCore.Design.props Relocates the design property asset.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@wtgodbe wtgodbe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-code-quality

github-code-quality Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Code Coverage Overview

Languages: C#

C# / code-coverage

The overall line coverage in commit e27f1e6 in the tfm-neutral-package-... branch remains at 67%, unchanged from commit d5ee0dd in the main branch.

Show a line coverage summary of the most impacted files.
File main d5ee0dd tfm-neutral-package-... e27f1e6 +/-
D:\a\efcore\efc...ryRepository.cs 97% 91% -6%
/Users/runner/w...CSharpHelper.cs 96% 96% 0%
/Users/runner/w...delValidator.cs 100% 100% 0%
/Users/runner/w...ngConvention.cs 100% 100% 0%
/Users/runner/w...onExpression.cs 80% 80% 0%
/Users/runner/w...ssionVisitor.cs 92% 92% 0%
/Users/runner/w...ssionVisitor.cs 90% 90% 0%
/Users/runner/w...ryExpression.cs 92% 92% 0%
/home/runner/wo...CommandBatch.cs 64% 65% +1%
/home/runner/wo...CommandCache.cs 98% 100% +2%

Updated September 29, 2026 20:05 UTC

@akoeplinger
akoeplinger merged commit 982a619 into main Sep 29, 2026
37 of 38 checks passed
@akoeplinger
akoeplinger deleted the tfm-neutral-package-assets branch September 29, 2026 20:28
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 30, 2026
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.

4 participants