Repository navigation
Resolve dotnet-ef tool path from package contents - #69905
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Required review evidence was unavailable, and end-to-end template-test validation remains incomplete.
No open issues 🎉
What changed in this PR
Resolves the template tests’ dotnet-ef path from restored package contents instead of assuming a target framework.
Changes:
- Discovers
tools/*/any/dotnet-ef.dllduring test preparation. - Reports explicit errors when zero or multiple assemblies match.
| File | Description |
|---|---|
| src/ProjectTemplates/TestInfrastructure/PrepareForTest.targets | Discovers and validates the tool path before emitting assembly metadata. |
Review effort: Balanced
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 23:24 — with
GitHub Actions
Inactive
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 23:25 — with
GitHub Actions
Inactive
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 23:25 — with
GitHub Actions
Inactive
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 23:27 — with
GitHub Actions
Inactive
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 23:28 — with
GitHub Actions
Inactive
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 23:29 — with
GitHub Actions
Inactive
Contributor
|
✅ No documentation PR was created. Confidence that documentation is needed: 2% No docs needed: the PR fixes dotnet-ef path resolution in template test infrastructure only. Documentation surfaces considered
|
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 23:29 — with
GitHub Actions
Inactive
This branch was previously deployed
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.
Resolve dotnet-ef tool path from package contents
Impact: Restores 28 template tests that failed before execution because the test infrastructure pointed at a nonexistent
tools/net12.0/any/dotnet-ef.dll.Resolve dotnet-ef from the restored package layout
Description
Finds the single
tools/*/any/dotnet-ef.dllsupplied by the restoreddotnet-efpackage instead of deriving the tool host target framework from the product target framework. The target now reports an explicit error if the package contains zero or multiple matching tool assemblies.The failing package version,
12.0.0-alpha.1.26473.114, containstools/net10.0/any/dotnet-ef.dll; the previousnet12.0path does not exist.Validation:
source activate.sh && dotnet build src/ProjectTemplates/test/Templates.Tests/Templates.Tests.csproj -v:minimal— passed after preparing the documented template-test prerequisites.PrepareForTestagainstdotnet-ef12.0.0-alpha.1.26473.114resolvedDotNetEfFullPathto the existingtools/net10.0/any/dotnet-ef.dll.source activate.sh && dotnet test src/ProjectTemplates/test/Templates.Tests/Templates.Tests.csproj --no-build --no-restore --filter "FullyQualifiedName~IdentityUIPackage_WorksWithDifferentOptions"— reached generated-project restore, then was blocked by the incomplete local ASP.NET Core and EF package graph (NU1102); it did not fail on thedotnet-efpath.Related to internal CI build 3107295; no public issue.