Skip to content

Commit 460c6c7

Browse files
committed
doc: Make Windows build docs match the CI task
Added Visual Studio 2022.
1 parent 849cf96 commit 460c6c7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

build_msvc/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Building Bitcoin Core with Visual Studio
33

44
Introduction
55
---------------------
6-
Solution and project files to build Bitcoin Core with `msbuild` or Visual Studio can be found in the `build_msvc` directory. The build has been tested with Visual Studio 2019 (building with earlier versions of Visual Studio should not be expected to work).
6+
Solution and project files to build Bitcoin Core with `msbuild` or Visual Studio can be found in the `build_msvc` directory. The build has been tested with Visual Studio 2022 and Visual Studio 2019 (building with earlier versions of Visual Studio should not be expected to work).
77

88
To build Bitcoin Core from the command-line, it is sufficient to only install the Visual Studio Build Tools component.
99

@@ -30,7 +30,7 @@ To build Bitcoin Core with the GUI, a static build of Qt is required.
3030

3131
1. Download a single ZIP archive of Qt source code from https://download.qt.io/official_releases/qt/ (e.g., [`qt-everywhere-opensource-src-5.15.3.zip`](https://download.qt.io/official_releases/qt/5.15/5.15.3/single/qt-everywhere-opensource-src-5.15.3.zip)), and expand it into a dedicated folder. The following instructions assume that this folder is `C:\dev\qt-source`.
3232

33-
2. Open "x64 Native Tools Command Prompt for VS 2019", and input the following commands:
33+
2. Open "x64 Native Tools Command Prompt for VS 2022", and input the following commands:
3434
```cmd
3535
cd C:\dev\qt-source
3636
mkdir build
@@ -47,21 +47,21 @@ To build Bitcoin Core without Qt, unload or disable the `bitcoin-qt`, `libbitcoi
4747

4848
Building
4949
---------------------
50-
1. Use Python to generate `*.vcxproj` from Makefile:
50+
1. Use Python to generate `*.vcxproj` for the Visual Studio 2022 toolchain from Makefile:
5151

52-
```
53-
PS >py -3 msvc-autogen.py
52+
```cmd
53+
python build_msvc\msvc-autogen.py -toolset v143
5454
```
5555

5656
2. An optional step is to adjust the settings in the `build_msvc` directory and the `common.init.vcxproj` file. This project file contains settings that are common to all projects such as the runtime library version and target Windows SDK version. The Qt directories can also be set. To specify a non-default path to a static Qt package directory, use the `QTBASEDIR` environment variable.
5757

58-
3. To build from the command-line with the Visual Studio 2019 toolchain use:
58+
3. To build from the command-line with the Visual Studio toolchain use:
5959

6060
```cmd
61-
msbuild -property:Configuration=Release -maxCpuCount -verbosity:minimal bitcoin.sln
61+
msbuild build_msvc\bitcoin.sln -property:Configuration=Release -maxCpuCount -verbosity:minimal
6262
```
6363

64-
Alternatively, open the `build_msvc/bitcoin.sln` file in Visual Studio 2019.
64+
Alternatively, open the `build_msvc/bitcoin.sln` file in Visual Studio.
6565

6666
Security
6767
---------------------

0 commit comments

Comments
 (0)