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
If you are planning to use in-market WDK, then you would typically want to use the 'main' branch:
73
+
64
74
```
65
75
git checkout main
66
76
```
67
77
68
78
If you are planning to use a WDK Preview or WDK EEAP release, then you would typically want to use the 'develop' branch:
79
+
69
80
```
70
81
git checkout develop
71
82
```
72
83
84
+
---
85
+
73
86
## Step 5: Create a "driver build environment"
74
87
75
88
To build the Windows Driver Samples you need a "driver build environment". In essence an environment that consist of following prerequisites:
@@ -78,53 +91,55 @@ To build the Windows Driver Samples you need a "driver build environment". In e
78
91
* The Windows Driver Kit.
79
92
80
93
### Option A: Use WDK NuGet Packages
81
-
* See [Download the Windows Driver Kit (WDK)](https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk) for instructions on how to install Visual Studio, but only complete "Step 1". You do not need to install the SDK or the WDK.
82
-
* Install the Visual Studio Windows Driver Kit Extension (WDK.vsix).
83
-
* Open Visual Studio -> Extensions -> Manage Extensions... -> Browse.
84
-
* In the search bar type: `Windows Driver Kit`.
85
-
* Find the `Microsoft` signed extension.
86
-
* Click the Install button.
94
+
95
+
* See [Download the Windows Driver Kit (WDK)](https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk) for instructions on how to install Visual Studio, but only complete `Step 1`. You do not need to install the SDK or the WDK.
87
96
* Launch a "Developer Command Prompt for VS 2022".
88
97
* Restore WDK packages from feed :
89
98
90
-
```
91
-
>cd path\to\your\repos\Windows-driver-samples
92
-
>nuget restore -PackagesDirectory .\packages
99
+
```powershell
100
+
cd "path\to\your\repos\Windows-driver-samples"
101
+
nuget restore -PackagesDirectory ".\packages"
93
102
```
94
103
95
-
* When this is done you should have a .\packages folder that looks exactly as follows:
96
-
```
97
-
>cd path\to\your\repos\Windows-driver-samples
98
-
>dir /b packages
104
+
* When this is done you should have a .\packages folder that looks like example below:
105
+
106
+
```powershell
107
+
cd "path\to\your\repos\Windows-driver-samples"
108
+
dir /b packages
99
109
Microsoft.Windows.SDK.CPP.10.0.26000.1
100
110
Microsoft.Windows.SDK.CPP.x64.10.0.26000.1
101
111
Microsoft.Windows.SDK.CPP.arm64.10.0.26000.1
102
112
Microsoft.Windows.WDK.x64.10.0.26000.1
103
113
Microsoft.Windows.WDK.arm64.10.0.26000.1
104
114
```
115
+
105
116
### Option B: Use the Windows Driver Kit
117
+
106
118
* Here you will install each of above prerequisites one at a time.
107
119
* See [Download the Windows Driver Kit (WDK)](https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk) for instructions on how to install Visual Studio, SDK, and WDK.
108
120
* Launch a "Developer Command Prompt for VS 2022".
109
121
110
122
### Option C: Use an Enterprise WDK
123
+
111
124
* You can also simply use the Enterprise WDK (EWDK), a standalone, self-contained command-line environment for building drivers that contains all prerequisites in one combined ISO.
112
125
* See [Download the Windows Driver Kit (WDK)](https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk) for instructions on how to download the EWDK.
113
126
* Mount ISO image
114
127
* Open a terminal
115
128
*`.\LaunchBuildEnv`
116
129
130
+
---
117
131
118
132
## Step 6: Check all samples builds with expected results for all flavors
119
133
120
-
```
134
+
```powershell
121
135
pwsh
122
136
.\Build-AllSamples
123
137
```
124
138
Above builds all samples for all configurations and platforms.
125
139
126
140
You can refine what exact samples to build, what configurations, and platforms to build. build Here are a few examples:
0 commit comments