mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-29 17:04:41 +02:00
update instructions for VS2022 Build Tools and new Win 10 SDK
parent
e27243179b
commit
26ca661a87
@ -2,18 +2,27 @@
|
||||
- git clone https://github.com/PowerShell/openssh-portable
|
||||
- git checkout latestw_all
|
||||
|
||||
#### Building OpenSSH for Windows Using Visual Studio, 2015 or newer [*Recommended*]
|
||||
- Download and Install VS 2015, or newer, with Desktop Development with C++ - [latest install here](https://visualstudio.microsoft.com/downloads/)
|
||||
- Confirm the Desktop Development with C++ Kit was installed properly by checking `${env:ProgramFiles(x86)}\Microsoft Visual Studio\*\*\VC\Auxiliary\Build` for a `vcvarsall.bat` file, as shown in the image below:
|
||||

|
||||
- Install Windows SDK 10.0.17763.0 during Visual Studio install, or download from [here](https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/)
|
||||
- Confirm the SDK was installed properly by checking `${env:ProgramFiles(x86)}\Windows Kits\10\Bin` for a `10.0.17763.0` folder, as shown in the image below:
|
||||

|
||||
- Install Microsoft Build Tools 2015 during Visual Studio install, or download from [here](https://www.microsoft.com/en-us/download/details.aspx?id=48159). Note, Build Tools 2015 are needed regardless of the Visual Studio version installed
|
||||
- Confirm the Build Tools were installed properly by checking `${env:ProgramFiles(x86)}\MSBuild\Microsoft.Cpp\v4.0\140` for a `Microsoft.Cpp.Default.Props` file, as shown in the image below:
|
||||

|
||||
- Open "contrib\win32\openssh\Win32-OpenSSH.sln" in Visual Studio, ensure platform toolset is set to "no upgrade" and Windows SDK is set to "10.0.17763.0" as shown in the image below: \
|
||||

|
||||
#### Building OpenSSH for Windows Using Visual Studio [*Recommended*]
|
||||
- Download and Install Visual Studio - [latest install here](https://visualstudio.microsoft.com/downloads/).
|
||||
- If using the Visual Studio installer, select the following:
|
||||
- Desktop Development with C++ Workload
|
||||
- Windows 11 SDK 10.0.22621.0 Individual Component
|
||||
- MSVC 143 Build Tool(s) Individual Component(s) - up to 3 depending on which architecture(s) will be built: x86/x64, ARM, ARM64
|
||||
- MSVC 143 Spectre-Mitigated Lib(s) Individual Component(s) - up to 3 depending on which architecture(s) will be built: x86/x64, ARM, ARM64
|
||||
|
||||
- Confirm the selections look something like this:
|
||||

|
||||
|
||||
- Confirm the Desktop Development with C++ Kit was installed properly by checking `${env:ProgramFiles}\Microsoft Visual Studio\*\*\VC\Auxiliary\Build` for a `vcvarsall.bat` file, as shown in the image below:
|
||||

|
||||
|
||||
- Install Windows SDK 10.0.22621.0 during Visual Studio install, or download from [here](https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/)
|
||||
- Confirm the SDK was installed properly by checking `${env:ProgramFiles(x86)}\Windows Kits\10\Bin` for a `10.0.22621.0` folder, as shown in the image below:
|
||||

|
||||
|
||||
- Confirm the Build Tools were installed properly by checking `${env:ProgramFiles}\Microsoft Visual Studio\2022\*\MSBuild\Microsoft\VC\v170` for a `Microsoft.Cpp.Default.Props` file, as shown in the image below:
|
||||

|
||||
- Open `contrib\win32\openssh\Win32-OpenSSH.sln` in Visual Studio, if prompted ensure platform toolset is set to "no upgrade" and Windows SDK is set to "10.0.22621.0"
|
||||
- If necessary, change the configuration and architecture from the middle toolbar
|
||||
- Build the Win32-OpenSSH binaries
|
||||
- Binaries will be in a `.\bin\{Architecture}\{Configuration}` folder, as shown in the image below for an x64, Debug build:
|
||||
@ -23,10 +32,10 @@
|
||||
In Powershell:
|
||||
- cd repository-root
|
||||
- ipmo .\contrib\win32\openssh\OpenSSHBuildHelper.psm1 -Force
|
||||
- Start-OpenSSHBuild -Configuration <Release|Debug> -NativeHostArch <x64|x86>
|
||||
- Start-OpenSSHBuild -Configuration <Release|Debug> -NativeHostArch <x64|x86|ARM|ARM64>
|
||||
|
||||
#### Deploying OpenSSH for Windows
|
||||
- Start-OpenSSHPackage -Configuration <Release|Debug> -NativeHostArch <x64|x86>
|
||||
- Start-OpenSSHPackage -Configuration <Release|Debug> -NativeHostArch <x64|x86|ARM|ARM64>
|
||||
- Above generates Zipped binary and symbols payload. Follow further installation instructions [here](https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH).
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user