Repository navigation
Conversation
Restore Pack evaluation reuse while isolating _GetProjectVersion outputs from consumer-owned _ProjectPathWithVersion items. Add regression coverage for reused project instances and restore the include-source expectation. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ad2aed8e-36d1-4962-ba0c-f9fb24063054
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
The renamed private output item makes the injected old-name collision scenario no longer useful as direct regression coverage. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ad2aed8e-36d1-4962-ba0c-f9fb24063054
Member
Author
baronfel
marked this pull request as ready for review
July 25, 2026 17:38
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
ViktorHofer
approved these changes
Jul 27, 2026
nkolev92
reviewed
Jul 27, 2026
nkolev92
left a comment
Contributor
There was a problem hiding this comment.
LGTM. There's some unnecessary changes in the tests.
|
|
||
| _dotnetFixture.CreateDotnetNewProject(testDirectory.Path, projectName, args: "classlib", testOutputHelper: _testOutputHelper); | ||
| _dotnetFixture.CreateDotnetNewProject(testDirectory.Path, referencedProject, "classlib", testOutputHelper: _testOutputHelper); | ||
| _dotnetFixture.CreateDotnetNewProject( |
Contributor
There was a problem hiding this comment.
This is just indentation.
2 of 3 tasks
Member
Author
|
Probably too late for p7, so I've re-done this over at NuGet.Client's dev branch for codeflow to rc1. |
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
NoBuild=truehandling._GetProjectVersion's private output item from_ProjectPathWithVersionto_ProjectReferenceWithVersion.Root cause
VMR build 1524269 and dotnet/dotnet #7907 failed while packing ASP.NET Core with
An item with the same key has already been added.NuGet.Client #7541 removed
BuildProjectReferences=falsefrom Pack's inner MSBuild calls so already-built project instances could be reused instead of redundantly evaluated. That reuse exposed an accidental private-item overlap: both NuGet Pack and ASP.NET Core used_ProjectPathWithVersion. The assets-file task returned unique project paths, but_GetProjectVersionreturned the accumulated colliding items from the reused instances, andPackTaskfailed while creating its project-version dictionary.NuGet.Client #7593 reverted the evaluation-reuse change to unblock the VMR. This change restores that behavior while giving NuGet's target output the unique
_ProjectReferenceWithVersionname. Consumer-owned_ProjectPathWithVersionitems can therefore remain on reused project instances without contaminating Pack's project-reference version outputs.Validation
Targeted
Dotnet.Integration.TestPack coverage onnet10.0: 6 passedPackCommand_PackProject_GetsProjectRefVersionFromMsbuild(4 cases)PackCommand_IncludeSource_AddsSourceFiles(2 cases)