Closed akitson-degreed closed 3 months ago
nevermind.. I figured out I had the version in the wrong place. should be
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: npm
directives:
description: Install Node version 18.10.x
allowPrerelease: true
settings:
id: OpenJS.Nodejs
source: winget
version: "18.10.0"
Brief description of your issue
The
winget configured
command does not respect themaxVersion
parameter in a configuration file.It works correctly if I use the cli command to do it.
Steps to reproduce
I have the following resource defined in my configuration file:
Expected behavior
I expect it to install a version no higher than
18.11.0
.Actual behavior
When
winget configure
runs, it installs the latest version.Environment