Repository navigation
Make TFM-specific package paths version-neutral - #39126
Merged
Merged
Conversation
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
Contributor
There was a problem hiding this comment.
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.
Code Coverage OverviewLanguages: C# C# / code-coverageThe overall line coverage in commit e27f1e6 in the Show a line coverage summary of the most impacted files.
Updated |
AndriySvyryd
approved these changes
Sep 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
$(DefaultNetCoreTargetFramework).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.build/net11.0,buildTransitive/net11.0, andlib/net11.0as appropriate.Note
This pull request description was generated with GitHub Copilot.