* Verify WinGet config exists before invoking winget configure
If the resolved `` does not exist, `winget configure` fails
with a cryptic error rather than telling the user that the config file
is missing. Add an explicit `Test-Path` guard that reports the missing
file path and the expected location, and update the existing failure
message to print the full `` instead of just ``
so it matches the path actually passed to `winget configure`.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Retrigger CI
---------
Co-authored-by: benhillis <17727402+benhillis@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add setup-dev-env.ps1 and WinGet configuration for dev prerequisites
Add a one-command developer environment setup that uses WinGet
Configuration (DSC) to install all build prerequisites: Developer Mode,
CMake, Visual Studio 2022, and the required VS workloads/components.
New files:
- tools/setup-dev-env.ps1: Detects any existing VS 2022 edition
(Community/Professional/Enterprise) and runs the matching WinGet
configuration. Defaults to Community when no VS 2022 is found.
- .vsconfig: Declares the required VS components (MSVC, ATL, Clang,
Windows SDK 26100, UWP tools, .NET desktop/WinUI workloads) so
VS Installer can import them directly.
- .config/configuration.winget: WinGet DSC config for VS Community.
- .config/configuration.vsProfessional.winget: Same for Professional.
- .config/configuration.vsEnterprise.winget: Same for Enterprise.
Updated doc/docs/dev-loop.md to document the automated setup and
reference the new .vsconfig and winget configuration files, while
keeping manual install instructions in a collapsed details block.
* doc: add winget configure --enable to manual setup instructions
Address review feedback: document that 'winget configure --enable' is
required before running winget configure manually, since the feature
may not be enabled by default.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>