Replace nuget-verification with dotnet nuget verify using InitializeDotNetCli#16354
Merged
akoeplinger merged 4 commits intomainfrom Dec 4, 2025
Merged
Replace nuget-verification with dotnet nuget verify using InitializeDotNetCli#16354akoeplinger merged 4 commits intomainfrom
akoeplinger merged 4 commits intomainfrom
Conversation
…lizeDotNetCli Co-authored-by: mmitche <[email protected]>
Copilot
AI
changed the title
[WIP] Replace NuGet verification script with dotnet nuget verify
Replace nuget-verification with dotnet nuget verify using InitializeDotNetCli
Nov 24, 2025
akoeplinger
reviewed
Nov 28, 2025
…on.ps1 Co-authored-by: akoeplinger <[email protected]>
akoeplinger
approved these changes
Nov 28, 2025
mmitche
approved these changes
Dec 1, 2025
Member
|
We'll need another reviewer since I don't count and you're the last pusher :) |
ViktorHofer
approved these changes
Dec 4, 2025
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.
The
nuget-verification.ps1script was failing in post-build validation because it attempted to use the SDK version fromglobal.jsonwhich wasn't available in that context. The script was also unnecessarily complex, downloadingnuget.exeand theNuGet.VerifyMicrosoftPackagetool.Changes:
InitializeDotNetCli -install:$truewhich ensures the correct SDK is availabledotnet nuget verifydirectly instead of the external verification toolnuget-validation.ps1and integrate its logic intonuget-verification.ps1:PackagesPathparameter directlyGet-ChildItemto find all*.nupkgfilespost-build.ymlto referencenuget-verification.ps1directlyTo double check:
dotnet nuget verify#16247Original prompt
dotnet nuget verify#16247💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.