-
Notifications
You must be signed in to change notification settings - Fork 241
Change Windows installation instructions #361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cc: @compnerd |
The Windows installation guide currently handles VS installation manually. We can leverage WinGet features instead:
Breakdown:
Such approach is much less error-prone as WinGet already counts for different environments (most notably, Powershell or CMD). |
Also I feel that installing the community version of VS is a waste because Swift developers don't need the IDE stuff. Visual Studio C++ Build Tools ( |
@libewa did you run from cmd or powershell/pwsh? The expectation is that you are using the cmd shell. For automation, the use of @stevapple yes, winget is the easier solution. Especially now that winget is a stub on Windows 11 that auto installs. Perhaps we should swap the order and direct people to the winget instructions? Also, you are correct that the build tools are sufficient but there are questions around licensing. VS Community is permitted for use for many cases. The build tools require a license of Visual Studio and thus the installation of VS. The instructions seem complicated enough so I think that we should keep to the Visual Studio installation. |
@compnerd I used pscore7, maybe that's the problem, but I'm going on holiday and can't try any of the solutions. |
also, maybe we should actually use cmd syntax highlighting instead of pwsh |
--installPath "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community" ^ | ||
--add Microsoft.VisualStudio.Component.Windows10SDK.19041 ^ | ||
--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 | ||
winget install Microsoft.VisualStudio.2019.Community --force --custom "--add Microsoft.VisualStudio.Component.Windows10SDK.19041 --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should just move this to VS2022 at this point and update the SDK to the latest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a story for another pr imo
--installPath "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community" ^ | ||
--add Microsoft.VisualStudio.Component.Windows10SDK.19041 ^ | ||
--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 | ||
winget install Microsoft.VisualStudio.2019.Community --force --custom "--add Microsoft.VisualStudio.Component.Windows10SDK.19041 --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@swift-ci please test |
@swift-ci please test |
Motivation:
The Windows installation process errored out on my PC, complaining that
start
could not find thevs_community.exe
file, which was however present after runningls
.Modifications:
start
, but instead execute the installer directly.Result:
The installation instructions for Windows have changed to
a) not quit with an error
b) correctly reference the Microsoft Store