Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio 2022 support added #3246

Merged
merged 2 commits into from
Mar 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions ansible/inventory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ hosts:
msft-win10_vs2019-x64-2: {ip: nodejs.westus3.cloudapp.azure.com}
msft-win10_vs2019-x64-3: {ip: nodejs.australiaeast.cloudapp.azure.com}
msft-win10_vs2019-x64-4: {ip: nodejs2.eastus.cloudapp.azure.com}
msft-win11_vs2019-arm64-1: {ip: nodejs.westeurope.cloudapp.azure.com}
msft-win11_vs2019-arm64-2: {ip: nodejs2.eastus.cloudapp.azure.com}
msft-win11_vs2019-arm64-3: {ip: nodejs.westeurope.cloudapp.azure.com}
msft-win11_vs2019-arm64-4: {ip: nodejs2.eastus.cloudapp.azure.com}
msft-win11_vs2019-arm64-5: {ip: nodejs.westeurope.cloudapp.azure.com}
msft-win11_vs2019-arm64-6: {ip: nodejs2.eastus.cloudapp.azure.com}
msft-win11_vs2022-arm64-1: {ip: nodejs.westeurope.cloudapp.azure.com}
msft-win11_vs2022-arm64-2: {ip: nodejs2.eastus.cloudapp.azure.com}
msft-win11_vs2022-arm64-3: {ip: nodejs.westeurope.cloudapp.azure.com}
msft-win11_vs2022-arm64-4: {ip: nodejs2.eastus.cloudapp.azure.com}
msft-win11_vs2022-arm64-5: {ip: nodejs.westeurope.cloudapp.azure.com}
msft-win11_vs2022-arm64-6: {ip: nodejs2.eastus.cloudapp.azure.com}
msft-win2016_vs2017-x64-1: {ip: nodejs.westeurope.cloudapp.azure.com}
msft-win2016_vs2017-x64-2: {ip: nodejs.westus3.cloudapp.azure.com}
msft-win2016_vs2017-x64-3: {ip: nodejs.australiaeast.cloudapp.azure.com}
Expand Down
4 changes: 4 additions & 0 deletions ansible/roles/visual-studio/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
when: "'vs2019' in inventory_hostname"
include_tasks: "partials/vs2019.yml"

- name: install Visual Studio 2022
when: "'vs2022' in inventory_hostname"
include_tasks: "partials/vs2022.yml"

# Install clcache and apply patches known to work
- block:
- name: check if clcache is already cloned
Expand Down
29 changes: 29 additions & 0 deletions ansible/roles/visual-studio/tasks/partials/vs2022.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---

#
# Install Visual Studio 2022
#


- name: install Visual Studio Community 2022
win_chocolatey: name=visualstudio2022community

# Note: The .NET SDK was added as a prerequisite for WiX4 - https://github.com/nodejs/node/pull/45943
- name: install Visual Studio Community 2022 Native Desktop Workload
win_chocolatey:
name: visualstudio2022-workload-nativedesktop
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'

# Note: https://chocolatey.org/docs/helpers-install-chocolatey-vsix-package exists, but
# can't be used with VS2022 yet: https://github.com/chocolatey/choco/issues/1201

- name: download WiX Toolset Visual Studio Extension
win_get_url:
url: 'https://github.com/wixtoolset/VisualStudioExtension/releases/download/v1.0.0.22/Votive2022.vsix'
dest: 'C:\TEMP\Votive2022.vsix'

- name: install WiX Toolset Visual Studio Extension
win_shell: '& "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VSIXInstaller.exe" /quiet C:\TEMP\Votive2022.vsix'