Description
A new CLI option, such as the command winget sandbox-test <manifest>, or winget install --sandbox-test <manifest>, for testing packages install in Windows Sandbox.
Proposed technical implementation details
It should create a new Sandbox, and try to perform the winget install -m <manifest> there.
Sandboxes can be customized and set to run a PowerShell Script or commands on its startup through an XML configuration file .wsb.
See: https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-sandbox/windows-sandbox-configure-using-wsb-file
This way we would have fully isolated test environments for each time, very practical, fast, and lightweight (different than a VirtualBox machine and Vagrant).
Description
A new CLI option, such as the command
winget sandbox-test <manifest>, orwinget install --sandbox-test <manifest>, for testing packages install in Windows Sandbox.Proposed technical implementation details
It should create a new Sandbox, and try to perform the
winget install -m <manifest>there.Sandboxes can be customized and set to run a PowerShell Script or commands on its startup through an XML configuration file
.wsb.See: https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-sandbox/windows-sandbox-configure-using-wsb-file
This way we would have fully isolated test environments for each time, very practical, fast, and lightweight (different than a VirtualBox machine and Vagrant).