You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added Visual Studio build tools (#55629)
Added description of build tools (CMake, Ninja and Python) installation as Visual Studio Individual Components.
Added emphasis (bold) of Visual Studio installer sections and components (replaces previously used different styles of quotes).
* Removed Python 32-bit VS component
Python 64-bit component is enough for building x86 and x64 target architectures.
Co-authored-by: Juan Hoyos <[email protected]>
- Install [Visual Studio 2019](https://visualstudio.microsoft.com/downloads/). The Community edition is available free of charge.
23
23
24
24
Visual Studio 2019 installation process:
25
-
- It's recommended to use 'Workloads' installation approach. The following are the minimum requirements:
26
-
- .NET Desktop Development with all default components.
27
-
- Desktop Development with C++ with all default components.
28
-
- To build for Arm32 or Arm64, make sure that you have the right architecture-specific compilers installed. In the "Individual components" window, in the "Compilers, build tools, and runtimes" section:
29
-
- For Arm32, check the box for "MSVC v142 - VS 2019 C++ ARM build tools (v14.23 or newer)".
30
-
- For Arm64, check the box for "MSVC v142 - VS 2019 C++ ARM64 build tools (v14.23 or newer)".
25
+
- It's recommended to use **Workloads** installation approach. The following are the minimum requirements:
26
+
-**.NET Desktop Development** with all default components,
27
+
-**Desktop Development with C++** with all default components.
28
+
- The build tools (CMake, Ninja and Python) can be downloaded and installed separately (see detailed instructions in the [section below](#build-tools)) or by selecting the following **Individual Components**:
29
+
-**C++ CMake tools for Windows** (includes Ninja),
30
+
-**Python 3 64-bit** (3.7.4 or newer).
31
+
- To build for Arm32 or Arm64, make sure that you have the right architecture-specific compilers installed. In the **Individual components** window, in the **Compilers, build tools, and runtimes** section:
32
+
- For Arm32, check the box for **MSVC v142 - VS 2019 C++ ARM build tools (Latest)** (v14.23 or newer),
33
+
- For Arm64, check the box for **MSVC v142 - VS 2019 C++ ARM64 build tools (Latest)** (v14.23 or newer).
31
34
- To build the tests, you will need some additional components:
32
-
- Windows 10 SDK component version 10.0.18362 or newer. This component is installed by default as a part of 'Desktop Development with C++' workload.
33
-
- C++/CLI support for v142 build tools (v14.23 or newer)
35
+
-**Windows 10 SDK (10.0.18362)** or newer. This component is installed by default as a part of **Desktop Development with C++** workload.
36
+
-**C++/CLI support for v142 build tools (Latest)** (v14.23 or newer).
34
37
35
38
A `.vsconfig` file is included in the root of the dotnet/runtime repository that includes all components needed to build the dotnet/runtime repository. You can [import `.vsconfig` in your Visual Studio installer](https://docs.microsoft.com/en-us/visualstudio/install/import-export-installation-configurations?view=vs-2019#import-a-configuration) to install all necessary components.
36
39
37
40
Visual Studio 2019 16.6 or later is required for building the repository. Visual Studio 2019 16.10 is required to work with the libraries projects inside the Visual Studio IDE.
38
41
39
-
## CMake
42
+
## Build Tools
43
+
44
+
These steps are required only in case the tools have not been installed as Visual Studio **Individual Components** (described above).
45
+
46
+
### CMake
40
47
41
48
- Install [CMake](https://cmake.org/download) for Windows.
42
49
- Add its location (e.g. C:\Program Files (x86)\CMake\bin) to the PATH environment variable.
43
50
The installation script has a check box to do this, but you can do it yourself after the fact following the instructions at [Adding to the Default PATH variable](#adding-to-the-default-path-variable).
44
51
45
52
The dotnet/runtime repository recommends using CMake 3.16.4 or newer, but it may work with CMake 3.15.5.
46
53
47
-
## Ninja
54
+
###Ninja
48
55
49
56
- Install Ninja in one of the two following ways
50
57
-[Download the executable](https://github.com/ninja-build/ninja/releases) and add its location to [the Default PATH variable](#adding-to-the-default-path-variable).
51
58
-[Install via a package manager](https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages), which should automatically add it to the PATH environment variable.
52
59
53
-
## Python
60
+
###Python
54
61
55
62
- Install [Python](https://www.python.org/downloads/) for Windows.
56
63
- Add its location (e.g. C:\Python*\) to the PATH environment variable.
0 commit comments