-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support official DSC v3 release #5313
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
azure-pipelines.yml
Outdated
- powershell: | | ||
Install-WinGetPackage -Id Microsoft.DSC.Preview -Source winget | ||
$installResult = Install-WinGetPackage -Id Microsoft.DSC.Preview -Source winget -InstallerType Msix -Version 3.0.12 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$installResult = Install-WinGetPackage -Id Microsoft.DSC.Preview -Source winget -InstallerType Msix -Version 3.0.12 | |
$installResult = Install-WinGetPackage -Id Microsoft.DSC.Preview -Source winget -InstallerType Msix -Version 3.0.12.0 |
3.0.12 doesn't match the version on winget-pkgs, making the command fail
Install-WinGetPackage -Id Microsoft.DSC.Preview -Source winget | ||
$installResult = Install-WinGetPackage -Id Microsoft.DSC.Preview -Source winget -InstallerType Msix -Version 3.1.1 | ||
$installResult | Format-List | ||
if ($installResult.ExtendedErrorCode) { throw $installResult.ExtendedErrorCode } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: do we still need these debug related scripts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is what is installing DSC for the pipeline currently.
I'm still considering how best to have the configuration code paths handle acquiring DSC themselves.
Change
Install the specific, MSIX version from the winget-pkgs in the pipeline. (Store installs don't work on Server 2022)
In the processor, find
dsc.exe
by the alias location. Support the preview version for test builds (anything from winget-cli).Validation
Running tests locally continues to work.
Microsoft Reviewers: Open in CodeFlow