Skip to content

Trying to understand how winget export works with additional dsc ressources. #5948

@Stephanevg

Description

@Stephanevg

Hi,

I was simply trying to export my vscode setup together with the list of extensions I have installed.

This is basically what I am doing.

install-module vscode
winget configure export --Package-Id Microsoft.VisualStudioCode -o .\VsCodeExport.winget --module vscode --resource vscodeextension

And this is what the file VsCodeExport.winget looks like

# Created using winget configure export 1.12.350
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.3
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json
metadata:
  winget:
    processor:
      identifier: "dscv3"
resources:
- name: winget_Microsoft.VisualStudioCode
  type: Microsoft.WinGet/Package
  metadata:
    description: "Install Microsoft.VisualStudioCode"
  properties:
    id: "Microsoft.VisualStudioCode"
    source: "winget"
    

I am missing the vscode extension part. I am unsure if I am doing something wrong, is that actually supported, or if there is a bug.

Unfortunatly, I couldn't find that many ressources on winget export :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-ConfigureIssue related to WinGet ConfigurationIssue-DocsIt's a documentation issue that really should be on MicrosoftDocs

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions