From 962c0594ad985978c80711740ffba57ef5566f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adonais=20Romero=20Gonz=C3=A1lez?= Date: Thu, 14 Dec 2023 13:39:31 -0600 Subject: [PATCH 1/2] Workaround to fix issues install VS using winget configuration --- configuration.dsc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/configuration.dsc.yaml b/configuration.dsc.yaml index 62abdf993..d259db241 100644 --- a/configuration.dsc.yaml +++ b/configuration.dsc.yaml @@ -15,6 +15,7 @@ properties: - vsPackage directives: description: Install required VS workloads + maxVersion: "1.0.15" allowPrerelease: true settings: productId: Microsoft.VisualStudio.Product.Community From 7b0c7e24905cf4cafd33da5737b573696beb66b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adonais=20Romero=20Gonz=C3=A1lez?= Date: Thu, 14 Dec 2023 13:39:53 -0600 Subject: [PATCH 2/2] Add winget configuration file to install VS only --- configuration_vsonly.dsc.yaml | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 configuration_vsonly.dsc.yaml diff --git a/configuration_vsonly.dsc.yaml b/configuration_vsonly.dsc.yaml new file mode 100644 index 000000000..a46f410e2 --- /dev/null +++ b/configuration_vsonly.dsc.yaml @@ -0,0 +1,46 @@ +# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2 +properties: + resources: + - resource: Microsoft.WinGet.DSC/WinGetPackage + id: vsPackage + directives: + description: Install Visual Studio Community 2022 + allowPrerelease: true + settings: + id: Microsoft.VisualStudio.2022.Community + source: winget + - resource: Microsoft.VisualStudio.DSC/VSComponents + id: vsComponents + dependsOn: + - vsPackage + directives: + description: Install required VS workloads + maxVersion: "1.0.15" + allowPrerelease: true + settings: + productId: Microsoft.VisualStudio.Product.Community + channelId: VisualStudio.17.Release + includeRecommended: false + components: + - Microsoft.VisualStudio.Component.VC.CoreBuildTools + - Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core + - Microsoft.VisualStudio.Component.VC.Tools.x86.x64 + - Microsoft.VisualStudio.Component.VC.Tools.ARM64 + - Microsoft.VisualStudio.Component.VC.Tools.ARM64EC + - Microsoft.VisualStudio.Component.VC.Runtimes.x86.x64.Spectre + - Microsoft.VisualStudio.Component.VC.Runtimes.ARM64.Spectre + - Microsoft.VisualStudio.Component.VC.Runtimes.ARM64EC.Spectre + - Microsoft.VisualStudio.Component.VC.Redist.14.Latest + - Microsoft.VisualStudio.Component.Windows10SDK + - Microsoft.VisualStudio.Component.VC.ATL + - Microsoft.VisualStudio.Component.VC.ATL.ARM64 + - Microsoft.VisualStudio.Component.VC.ATL.Spectre + - Microsoft.VisualStudio.Component.VC.ATL.ARM64.Spectre + - Microsoft.VisualStudio.Component.VC.ATLMFC + - Microsoft.VisualStudio.Component.VC.ATLMFC.Spectre + - Microsoft.VisualStudio.Component.VC.ASAN + - Microsoft.VisualStudio.Component.NuGet.BuildTools + - Microsoft.VisualStudio.Component.VC.MFC.ARM64 + - Microsoft.VisualStudio.Component.VC.MFC.ARM64.Spectre + - Microsoft.VisualStudio.Workload.NativeDesktop + configurationVersion: 0.2.0