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 0d1975f

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 458c92b commit 0d1975f
Copy full SHA for 0d1975f

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
@@ -700,23 +700,37 @@ first and then reinstalling them.
700700

701701
##### Option 2: Automated install with WinGet
702702

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

708708
* Git for Windows with the `git` and Unix tools added to the `PATH`
709709
* `Python 3.14`
710-
* `Visual Studio 2022` (Community, Enterprise or Professional)
711-
* `Visual Studio 2022 Build Tools` with Visual C++ workload, Clang and ClangToolset
710+
* `Visual Studio 2022` (Build Tools, Community, Professional or Enterprise Edition) and
711+
"Desktop development with C++" workload, Clang and ClangToolset optional components
712712
* `NetWide Assembler`
713713

714-
To install Node.js prerequisites from PowerShell Terminal:
714+
The following Desired State Configuration (DSC) files are available:
715+
716+
| Edition | DSC Configuration |
717+
| ------------ | ------------------------------------------------------------------------------------------------ |
718+
| Build Tools | [configuration.vsBuildTools.dsc.yaml](./.configurations/configuration.vsBuildTools.dsc.yaml) |
719+
| Community | [configuration.dsc.yaml](./.configurations/configuration.dsc.yaml) |
720+
| Professional | [configuration.vsProfessional.dsc.yaml](./.configurations/configuration.vsProfessional.dsc.yaml) |
721+
| Enterprise | [configuration.vsEnterprise.dsc.yaml](./.configurations/configuration.vsEnterprise.dsc.yaml) |
722+
723+
Use one of the above DSC files with
724+
[winget configure](https://learn.microsoft.com/en-us/windows/package-manager/winget/configure#configure-subcommands)
725+
in a PowerShell Terminal to install Node.js prerequisites.
726+
For example, using the DSC file for Visual Studio Community Edition, execute the following command line:
715727

716728
```powershell
717729
winget configure .\.configurations\configuration.dsc.yaml
718730
```
719731

732+
To add optional components for MSI or ARM64 builds, refer to [Option 1: Manual install](#option-1-manual-install).
733+
720734
##### Option 3: Automated install with Boxstarter
721735

722736
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.