Installation command for Windows does not work

The winget command for installing Visual Studio from Install Swift - Windows | Swift.org does not work because the argument --custom is unknown.

The command winget upgrade Microsoft.AppInstaller to upgrade winget does not work (still an older version).

The command winget install --id Microsoft.VisualStudio.2022.Community --exact --force also does not seem to do anything.

I also tried to download the installer for Visual Studio 2022 does could not find it (only for Visual Studio 2026). The current installer has an "available" link in the main windows, but there only the 2026 versions are listed.

So currently I cannot install Swift on Windows (ARM).

I now installed Visual Studio 2026 via the Visual Studio Installer together with Windows 11 SDK 10.0.26100.6901 (the 22000 version is not available in Visual Studio 2026) + C++-Tools and a larger project compiled fine and was able to run, so is this OK?

If they have dropped VS2022, we should update the instructions. Using VS2026 is okay, the removal of the 22000 SDK has caused other CI to break as well as they needed to be updated, but no other issues have been reported.

1 Like