Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 848050d

Browse filesBrowse files
MikeMcC399aduh95
authored andcommitted
build,win: add WinGet Visual Studio 2022 Build Tools Edition config
PR-URL: #61652 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
1 parent 4484e14 commit 848050d
Copy full SHA for 848050d

2 files changed

+72-4Lines changed: 72 additions & 4 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+54Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
2+
# Reference: https://github.com/nodejs/node/blob/main/BUILDING.md#windows
3+
properties:
4+
resources:
5+
- resource: Microsoft.WinGet.DSC/WinGetPackage
6+
id: pythonPackage
7+
directives:
8+
description: Install Python 3.14
9+
module: Microsoft.WinGet.DSC
10+
allowPrerelease: true
11+
settings:
12+
id: Python.Python.3.14
13+
source: winget
14+
- resource: Microsoft.WinGet.DSC/WinGetPackage
15+
id: vsPackage
16+
directives:
17+
description: Install Visual Studio 2022 Build Tools
18+
allowPrerelease: true
19+
settings:
20+
id: Microsoft.VisualStudio.2022.BuildTools
21+
source: winget
22+
useLatest: true
23+
- resource: Microsoft.VisualStudio.DSC/VSComponents
24+
id: vsComponents
25+
dependsOn:
26+
- vsPackage
27+
directives:
28+
description: Install required VS workloads and components
29+
allowPrerelease: true
30+
settings:
31+
productId: Microsoft.VisualStudio.Product.BuildTools
32+
channelId: VisualStudio.17.Release
33+
includeRecommended: true
34+
components:
35+
- Microsoft.VisualStudio.Workload.VCTools
36+
- Microsoft.VisualStudio.Component.VC.Llvm.Clang
37+
- Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset
38+
- resource: Microsoft.WinGet.DSC/WinGetPackage
39+
id: gitPackage
40+
directives:
41+
description: Install Git
42+
allowPrerelease: true
43+
settings:
44+
id: Git.Git
45+
source: winget
46+
- resource: Microsoft.WinGet.DSC/WinGetPackage
47+
id: nasmPackage
48+
directives:
49+
description: Install NetWide Assembler (NASM)
50+
allowPrerelease: true
51+
settings:
52+
id: Nasm.Nasm
53+
source: winget
54+
configurationVersion: 0.1.1
Collapse file

‎BUILDING.md‎

Copy file name to clipboardExpand all lines: BUILDING.md
+18-4Lines changed: 18 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -780,23 +780,37 @@ first and then reinstalling them.
780780

781781
##### Option 2: Automated install with WinGet
782782

783-
[WinGet configuration files](https://github.com/nodejs/node/tree/main/.configurations)
783+
[WinGet configuration files](./.configurations)
784784
can be used to install all the required prerequisites for Node.js development
785785
easily. These files will install the following
786786
[WinGet](https://learn.microsoft.com/en-us/windows/package-manager/winget/) packages:
787787

788788
* Git for Windows with the `git` and Unix tools added to the `PATH`
789789
* `Python 3.14`
790-
* `Visual Studio 2022` (Community, Enterprise or Professional)
791-
* `Visual Studio 2022 Build Tools` with Visual C++ workload, Clang and ClangToolset
790+
* `Visual Studio 2022` (Build Tools, Community, Professional or Enterprise Edition) and
791+
"Desktop development with C++" workload, Clang and ClangToolset optional components
792792
* `NetWide Assembler`
793793

794-
To install Node.js prerequisites from PowerShell Terminal:
794+
The following Desired State Configuration (DSC) files are available:
795+
796+
| Edition | DSC Configuration |
797+
| ------------ | ------------------------------------------------------------------------------------------------ |
798+
| Build Tools | [configuration.vsBuildTools.dsc.yaml](./.configurations/configuration.vsBuildTools.dsc.yaml) |
799+
| Community | [configuration.dsc.yaml](./.configurations/configuration.dsc.yaml) |
800+
| Professional | [configuration.vsProfessional.dsc.yaml](./.configurations/configuration.vsProfessional.dsc.yaml) |
801+
| Enterprise | [configuration.vsEnterprise.dsc.yaml](./.configurations/configuration.vsEnterprise.dsc.yaml) |
802+
803+
Use one of the above DSC files with
804+
[winget configure](https://learn.microsoft.com/en-us/windows/package-manager/winget/configure#configure-subcommands)
805+
in a PowerShell Terminal to install Node.js prerequisites.
806+
For example, using the DSC file for Visual Studio Community Edition, execute the following command line:
795807

796808
```powershell
797809
winget configure .\.configurations\configuration.dsc.yaml
798810
```
799811

812+
To add optional components for MSI or ARM64 builds, refer to [Option 1: Manual install](#option-1-manual-install).
813+
800814
##### Option 3: Automated install with Boxstarter
801815

802816
A [Boxstarter](https://boxstarter.org/) script can be used for easy setup of

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.