Use NuGetCommand to install YamlDotNet from CFS feed#29241
Merged
vidai-msft merged 1 commit intomainfrom Mar 9, 2026
Merged
Conversation
| Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
Contributor
There was a problem hiding this comment.
Pull request overview
Refactors the pipeline and script to install YamlDotNet via a dedicated NuGet task and load the DLL from a deterministic packages directory under the agent temp folder.
Changes:
- Replaced PowerShell-based
Install-PackagewithNuGetCommand@2(custom install) in the pipeline. - Passed
YAMLDOTNETVERSIONinto the parsing script and updated the script to resolveYamlDotNet.dllfrom$(Agent.TempDirectory)/packages.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tools/Github/ParseServiceContactsList.ps1 | Updates DLL discovery to align with the new NuGet install output directory/versioned folder. |
| .azure-pipelines/sync-aliases.yml | Installs YamlDotNet using NuGetCommand@2 and exports version info for the script. |
dolauli
approved these changes
Mar 9, 2026
notyashhh
pushed a commit
that referenced
this pull request
Mar 24, 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.
Description
This pull request refactors the installation and usage of the
YamlDotNetNuGet package in the Azure pipeline and PowerShell script to improve reliability and consistency. The most important changes are grouped below:Pipeline and package installation improvements:
YamlDotNetwith a dedicatedNuGetCommand@2task in.azure-pipelines/sync-aliases.yml, using explicit arguments for version and output directory, and reduced retry count for failures.YAMLDOTNETVERSION, ensuring the script receives the correct version information.Script update for package location:
tools/Github/ParseServiceContactsList.ps1to locate theYamlDotNet.dllbased on the new package directory structure defined by the pipeline, using the agent's temp directory and explicit versioning.Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.mdand reviewed the following information:ChangeLog.mdfile(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.## Upcoming Releaseheader in the past tense.ChangeLog.mdif no new release is required, such as fixing test case only.