From d0793b3b7eb3e325969629a1367513d15004890c Mon Sep 17 00:00:00 2001 From: Clint Rutkas Date: Thu, 8 Feb 2024 01:50:37 -0800 Subject: [PATCH] [Dev]Add additional Winget DSC scripts for VS Pro and Enterprise (#31325) * Create configuration.Enterprise.dsc.yaml * Create configuration.Professional.dsc.yaml * Update configuration.Enterprise.dsc.yaml * Update configuration.Professional.dsc.yaml * Update configuration.dsc.yaml * Rename configuration.Enterprise.dsc.yaml to configuration.vsEnterprise.dsc.yaml * Rename configuration.Professional.dsc.yaml to configuration.vsProfessional.dsc.yaml --- .configurations/configuration.dsc.yaml | 4 +-- .../configuration.vsEnterprise.dsc.yaml | 34 +++++++++++++++++++ .../configuration.vsProfessional.dsc.yaml | 34 +++++++++++++++++++ 3 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 .configurations/configuration.vsEnterprise.dsc.yaml create mode 100644 .configurations/configuration.vsProfessional.dsc.yaml diff --git a/.configurations/configuration.dsc.yaml b/.configurations/configuration.dsc.yaml index 4649f8d3ea..a6256da512 100644 --- a/.configurations/configuration.dsc.yaml +++ b/.configurations/configuration.dsc.yaml @@ -11,7 +11,7 @@ properties: - resource: Microsoft.WinGet.DSC/WinGetPackage id: vsPackage directives: - description: Install Visual Studio 2022 (any edition is OK) + description: Install Visual Studio 2022 Community (Any edition will work) allowPrerelease: true settings: id: Microsoft.VisualStudio.2022.Community @@ -31,4 +31,4 @@ properties: # Next steps: # Open a terminal # Navigate to the folder you cloned PowerToys to. - # Run git submodule update --init --recursive \ No newline at end of file + # Run git submodule update --init --recursive diff --git a/.configurations/configuration.vsEnterprise.dsc.yaml b/.configurations/configuration.vsEnterprise.dsc.yaml new file mode 100644 index 0000000000..34d73f4975 --- /dev/null +++ b/.configurations/configuration.vsEnterprise.dsc.yaml @@ -0,0 +1,34 @@ +# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2 +# Reference: https://github.com/microsoft/PowerToys/blob/main/doc/devdocs/readme.md#compiling-powertoys +properties: + resources: + - resource: Microsoft.Windows.Developer/DeveloperMode + directives: + description: Enable Developer Mode + allowPrerelease: true + settings: + Ensure: Present + - resource: Microsoft.WinGet.DSC/WinGetPackage + id: vsPackage + directives: + description: Install Visual Studio 2022 Enterprise (Any edition will work) + allowPrerelease: true + settings: + id: Microsoft.VisualStudio.2022.Enterprise + source: winget + - resource: Microsoft.VisualStudio.DSC/VSComponents + dependsOn: + - vsPackage + directives: + description: Install required VS workloads + allowPrerelease: true + settings: + productId: Microsoft.VisualStudio.Product.Enterprise + channelId: VisualStudio.17.Release + vsConfigFile: '${WinGetConfigRoot}\..\.vsconfig' + configurationVersion: 0.2.0 + + # Next steps: + # Open a terminal + # Navigate to the folder you cloned PowerToys to. + # Run git submodule update --init --recursive diff --git a/.configurations/configuration.vsProfessional.dsc.yaml b/.configurations/configuration.vsProfessional.dsc.yaml new file mode 100644 index 0000000000..3c08d05856 --- /dev/null +++ b/.configurations/configuration.vsProfessional.dsc.yaml @@ -0,0 +1,34 @@ +# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2 +# Reference: https://github.com/microsoft/PowerToys/blob/main/doc/devdocs/readme.md#compiling-powertoys +properties: + resources: + - resource: Microsoft.Windows.Developer/DeveloperMode + directives: + description: Enable Developer Mode + allowPrerelease: true + settings: + Ensure: Present + - resource: Microsoft.WinGet.DSC/WinGetPackage + id: vsPackage + directives: + description: Install Visual Studio 2022 Professional (Any edition will work) + allowPrerelease: true + settings: + id: Microsoft.VisualStudio.2022.Professional + source: winget + - resource: Microsoft.VisualStudio.DSC/VSComponents + dependsOn: + - vsPackage + directives: + description: Install required VS workloads + allowPrerelease: true + settings: + productId: Microsoft.VisualStudio.Product.Professional + channelId: VisualStudio.17.Release + vsConfigFile: '${WinGetConfigRoot}\..\.vsconfig' + configurationVersion: 0.2.0 + + # Next steps: + # Open a terminal + # Navigate to the folder you cloned PowerToys to. + # Run git submodule update --init --recursive