From 7731bb7a365643674ca46d913ddbbec1bc1907b4 Mon Sep 17 00:00:00 2001 From: StefanStojanovic Date: Wed, 1 Mar 2023 16:10:27 +0100 Subject: [PATCH] ansible: add .NET SDK on Windows This is required to migrate from WiX3 to WiX4 for building the Node msi. Refs: https://github.com/nodejs/node/pull/45943 PR-URL: https://github.com/nodejs/build/pull/3211 Reviewed-By: Richard Lau --- ansible/roles/visual-studio/tasks/partials/vs2019.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/roles/visual-studio/tasks/partials/vs2019.yml b/ansible/roles/visual-studio/tasks/partials/vs2019.yml index cb618c1ca..6c54f401b 100644 --- a/ansible/roles/visual-studio/tasks/partials/vs2019.yml +++ b/ansible/roles/visual-studio/tasks/partials/vs2019.yml @@ -8,10 +8,11 @@ - name: install Visual Studio Community 2019 win_chocolatey: name=visualstudio2019community +# Note: The .NET SDK was added as a prerequisite for WiX4 - https://github.com/nodejs/node/pull/45943 - name: install Visual Studio Community 2019 Native Desktop Workload win_chocolatey: name: visualstudio2019-workload-nativedesktop - params: '--add Microsoft.VisualStudio.Component.VC.Tools.ARM64 --add Microsoft.VisualStudio.Component.VC.ATL.ARM64' + params: '--add Microsoft.VisualStudio.Component.VC.Tools.ARM64 --add Microsoft.VisualStudio.Component.VC.ATL.ARM64 --add Microsoft.NetCore.Component.SDK' - name: install WiX Toolset import_tasks: 'wixtoolset.yml'