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
Copy file name to clipboardExpand all lines: docs/building/windows-instructions.md
+22-11Lines changed: 22 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,11 @@ You can build ML.NET either via the command line or by using Visual Studio.
5
5
6
6
## Required Software
7
7
8
-
1.**[Visual Studio 2017](https://www.visualstudio.com/downloads/) (Community, Professional, Enterprise)**. The Community version is completely free.
8
+
1.**[Visual Studio 2017](https://www.visualstudio.com/downloads/) (Community, Professional, Enterprise)**The Community version is completely free. The below build instructions were verified for VS 15.8.0 and higher.
9
9
2.**[CMake](https://cmake.org/)** must be installed from [the CMake download page](https://cmake.org/download/#latest) and added to your path.
10
10
11
-
### Visual Studio 2017
11
+
### Visual Studio 2017 Installation
12
+
We have successfully verified the below build instructions for Visual Studio version 15.8.0 and higher.
12
13
13
14
#### Visual Studio 2017 - 'Workloads' based install
14
15
@@ -36,10 +37,18 @@ The following are the minimum requirements:
36
37
* MSBuild
37
38
* .NET Framework 4.6 Targeting Pack
38
39
* Windows Universal CRT SDK
39
-
40
-
In order to build in the Visual Studio IDE, need to call “build.cmd” from the command line first. Tests can be executed from the VS Test Explorer or command line.
41
-
42
-
## Building From the Command Line
40
+
41
+
## Building Instructions
42
+
43
+
### Building From Visual Studio 2017
44
+
45
+
First, set up the required tools, from a (non-admin) Command Prompt window:
46
+
47
+
-`build.cmd` - sets up tools and builds the assemblies
48
+
49
+
After successfully running the command, the project can be build directly from the Visual Studio IDE. Tests can be executed from the VS Test Explorer or command line.
50
+
51
+
### Building From the Command Line
43
52
44
53
You can use the Developer Command Prompt, Powershell or work in any regular cmd. The Developer Command Prompt will have a name like "Developer Command Prompt for VS 2017" or similar in your start menu.
45
54
@@ -51,16 +60,18 @@ From a (non-admin) Command Prompt window:
51
60
52
61
**Note**: Before working on individual projects or test projects you **must** run `build.cmd` from the root once before beginning that work. It is also a good idea to run `build.cmd` whenever you pull a large set of unknown changes into your branch.
53
62
63
+
## Running Tests
64
+
65
+
### Running tests from Visual Studio
66
+
67
+
After successfully building, run tests in the Visual Studio Test Explorer window.
68
+
54
69
### Running tests from the command line
55
70
56
71
From the root, run `build.cmd` and then `build.cmd -runTests`.
57
72
For more details, or to test an individual project, you can navigate to the test project directory and then use `dotnet test`
58
-
59
-
### Running tests from Visual Studio
60
-
61
-
You need to run tests in the Test Explorer window.
62
73
63
-
###Known Issues
74
+
## Known Issues
64
75
65
76
CMake 3.7 or higher is required for Visual Studio 2017.
0 commit comments