Passing -package Microsoft.DotNet.Framework.DeveloperPack_4 -- successfully installed .NET Framework 4.8.1 (the default, since no version was provided)
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
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:-package Microsoft.DotNet.Framework.DeveloperPack_4 -version 4.6.2
-- successfully installed .NET Framework 4.6.2-package Microsoft.DotNet.Framework.DeveloperPack_4
-- successfully installed .NET Framework 4.8.1 (the default, since no version was provided)