microsoft / devcenter-catalog

MIT License
26 stars 78 forks source link

Add support for version parameter to winget task #92

Closed brianaeng closed 4 months ago

brianaeng commented 4 months ago

This PR adds the "version" parameter for use in the winget task, allowing users to specify a version of the package to install.

This was tested by locally running the main.ps1 script for the winget task with the following scenarios:

  1. Passing -package Microsoft.DotNet.Framework.DeveloperPack_4 -version 4.6.2 -- successfully installed .NET Framework 4.6.2
  2. Passing -package Microsoft.DotNet.Framework.DeveloperPack_4 -- successfully installed .NET Framework 4.8.1 (the default, since no version was provided)
brianaeng commented 4 months ago

Also validated this by: utilize test DevCenter => add my branch (with this change) to the catalog => spun up a DevBox w/ customization file (with version specified) => checked .NET Framework version on the box

image