Skip to content

Fallback to PackageVersion if NuspecReader.GetVersion() returns null - #7619

Merged
kartheekp-ms merged 2 commits into
NuGet:devfrom
Youssef1313:patch-1
Aug 7, 2026
Merged

kartheekp-ms merged 2 commits into
NuGet:devfrom
Youssef1313:patch-1

Conversation

@Youssef1313

Copy link
Copy Markdown
Contributor

The missing fallback is one reason why dotnet/dotnet#8138 failed in preview 7.

In the above specific case, there is also a wrong MSBuild target ordering originating from Arcade (for which a fix flowed already to main branch in VMR and that's why the same insertion isn't failing in VMR main).

However, keeping the fallback is probably safest. This fallback was unintentionally dropped in #7612

@Youssef1313
Youssef1313 requested a review from a team as a code owner August 5, 2026 20:01
@Youssef1313

Copy link
Copy Markdown
Contributor Author

@zivkan @kartheekp-ms Please review.

@dotnet-policy-service dotnet-policy-service Bot added the Community PRs created by someone not in the NuGet team label Aug 5, 2026
* Add regression test for nuspec version fallback

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

* Update GetPackOutputItemsTaskTests.cs

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Youssef1313 <[email protected]>
Co-authored-by: Youssef Fahmy <[email protected]>
@Youssef1313

Copy link
Copy Markdown
Contributor Author

@kartheekp-ms Test added.

@kartheekp-ms
kartheekp-ms enabled auto-merge (squash) August 7, 2026 00:46
@kartheekp-ms
kartheekp-ms merged commit a4c3e09 into NuGet:dev Aug 7, 2026
17 checks passed
@Youssef1313
Youssef1313 deleted the patch-1 branch August 7, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community PRs created by someone not in the NuGet team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants