office-gobmx/.configurations/configuration.dsc.yaml
Christian Lohmaier ea6f4bb93e winget configuration files for installing Visual Studio Community 2022
A first step into streamlining the dependency installation process
using winget / DevHome

You can apply winget configurations with DevHome or from commandline
by running

winget configure -f path-to-configuration.yaml

The *.vsconfig files can also be manually imported into Visual Studio
Installer to install missing components into an existing installation

Two variants are provided in this commit, one set including the
components needed to cross-compile for ARM64 (uses around 1GB)

The version of the Windows SDK chosen is the one that matches the SDK
from the recommended packages, to avoid installing two different SDKs
when using the configuration that includes the recommended packages

The *.vsconfig files don't include the implied packages/the ones
required by the workload. For a list of the components and their
corresponding friendly names, see
https://learn.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community

Change-Id: Ie44ee3dd39c3e61fb2d7c597b71a4a81e0e6b8d3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173336
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2024-10-10 23:49:19 +02:00

30 lines
1.3 KiB
YAML

# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
# This configuration is for a typical end-user installation of Visual Studio Community 2022 with the
# required components to build LibreOffice, excluding the components to cross-compile for ARM64
# It includes recommended packages as if you had selected the "Desktop development with C++"
# workload in the in the UI driven installer.
# (the allowPrerelease directive refers to the DSC module)
properties:
resources:
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: VisualStudio
directives:
description: Install Visual Studio 2022 Community
allowPrerelease: true
settings:
id: Microsoft.VisualStudio.2022.Community
source: winget
- resource: Microsoft.VisualStudio.DSC/VSComponents
id: LibreOffice Components including recommended packages
dependsOn:
- VisualStudio
directives:
description: Install components required to build LibreOffice, including recommended ones
settings:
productId: Microsoft.VisualStudio.Product.Community
channelId: VisualStudio.17.Release
vsConfigFile: '${WinGetConfigRoot}\2022.vsconfig'
IncludeRecommended: true
configurationVersion: 0.2.0