mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-10 00:48:23 -06:00
PR adds a WinGet configuration file to install the necessary dependencies in order to build terminal locally. The configuration file enables developer mode, installs PowerShell 7, Visual Studio 2022 & all the required workloads from the .vsconfig file (in accordance with the dependencies listed in the README). ## Validation Steps Performed Tested the configuration file by spinning up a clean Win11 Pro VM in azure and then doing the following: 1. Install latest WinGet on the VM using WinGet sandbox script. Install git and clone the repo 2. Run `winget configure .config/configuration.winget` (this should work by just double-clicking the file in explorer too) 3. After the configuration is completed, open the solution in the now installed Visual Studio and build. The build is successful and I could start terminal with F5 Co-authored-by: Demitrius Nelon <denelon@microsoft.com>
44 lines
1.7 KiB
Plaintext
44 lines
1.7 KiB
Plaintext
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
|
|
# Reference: https://github.com/microsoft/terminal/blob/main/README.md#developer-guidance
|
|
properties:
|
|
resources:
|
|
- resource: Microsoft.Windows.Developer/DeveloperMode
|
|
directives:
|
|
description: Enable Developer Mode
|
|
allowPrerelease: true
|
|
# Requires elevation for the set operation
|
|
securityContext: elevated
|
|
settings:
|
|
Ensure: Present
|
|
- resource: Microsoft.WinGet.DSC/WinGetPackage
|
|
id: powershell
|
|
directives:
|
|
description: Install PowerShell 7
|
|
# Requires elevation for the set operation (i.e., installation)
|
|
securityContext: elevated
|
|
settings:
|
|
id: Microsoft.PowerShell
|
|
source: winget
|
|
- resource: Microsoft.WinGet.DSC/WinGetPackage
|
|
id: vsPackage
|
|
directives:
|
|
description: Install Visual Studio 2022 Community (any edition is OK)
|
|
# Requires elevation for the set operation (i.e., installation)
|
|
securityContext: elevated
|
|
settings:
|
|
id: Microsoft.VisualStudio.2022.Community
|
|
source: winget
|
|
- resource: Microsoft.VisualStudio.DSC/VSComponents
|
|
dependsOn:
|
|
- vsPackage
|
|
directives:
|
|
description: Install required VS workloads from project .vsconfig file
|
|
allowPrerelease: true
|
|
# Requires elevation for the get and set operations
|
|
securityContext: elevated
|
|
settings:
|
|
productId: Microsoft.VisualStudio.Product.Community
|
|
channelId: VisualStudio.17.Release
|
|
vsConfigFile: '${WinGetConfigRoot}\..\.vsconfig'
|
|
configurationVersion: 0.2.0
|