microsoft / microsoft/winget-studio

Configuration file version https://aka.ms/dsc/schemas/v3/config/document.json is not known

Open
#193 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug
Dominant language
C#
Stars
67
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Brief description of your issue

When I try to open the following dsc configuration I get the error Configuration file version https://aka.ms/dsc/schemas/v3/config/document.json is not known and the configuration is not loaded.

$schema: https://aka.ms/dsc/schemas/v3/config/document.json
metadata:
  description: Meine erste Entwicklungsumgebung
  configurationVersion: 0.3.0
resources:
  - name: Install Git
    type: Microsoft.WinGet.DSC/WinGetPackage
    properties:
      id: Git.Git
      source: winget
  - name: Install VS Code
    type: Microsoft.WinGet.DSC/WinGetPackage
    properties:
      id: Microsoft.VisualStudioCode
      source: winget
  - name: Install 7-Zip
    type: Microsoft.WinGet.DSC/WinGetPackage
    properties:
      id: 7zip.7zip
      source: winget
[2025-11-30 10:50:11.592 ERR] [WinGetStudio v0.100.320.0] [FLOLAPTOP] [13] (WinGetStudio.Services.DesiredStateConfiguration.Services.DSCOperations) [CONF] No properties
[2025-11-30 10:50:11.593 ERR] [WinGetStudio v0.100.320.0] [FLOLAPTOP] [13] (WinGetStudio.Services.DesiredStateConfiguration.Services.DSCOperations) [CONF] ConfigurationSetParser error: 8a15c00e for $schema with value `` at [line 0, col 0]
[2025-11-30 10:50:11.594 ERR] [WinGetStudio v0.100.320.0] [FLOLAPTOP] [13] (WinGetStudio.Services.DesiredStateConfiguration.Services.DSCOperations) [CONF] Unknown configuration schema: https://aka.ms/dsc/schemas/v3/config/document.json
[2025-11-30 10:50:11.594 ERR] [WinGetStudio v0.100.320.0] [FLOLAPTOP] [13] (WinGetStudio.Services.DesiredStateConfiguration.Services.DSCOperations) [CONF] ConfigurationSetParser error: 8a15c004 for $schema with value `https://aka.ms/dsc/schemas/v3/config/document.json` at [line 0, col 0]
[2025-11-30 10:50:11.598 ERR] [WinGetStudio v0.100.320.0] [FLOLAPTOP] [2] (WinGetStudio.ViewModels.ConfigurationFlow.PreviewFileViewModel) Opening configuration set failed
WinGetStudio.Services.DesiredStateConfiguration.Exceptions.OpenConfigurationSetException: Exception of type 'WinGetStudio.Services.DesiredStateConfiguration.Exceptions.OpenConfigurationSetException' was thrown.
   at WinGetStudio.Services.DesiredStateConfiguration.Services.DSCOperations.OpenConfigurationSetInternalAsync(IDSCFile file, ConfigurationProcessor processor, CancellationToken ct)
   at WinGetStudio.Services.DesiredStateConfiguration.Services.DSCOperations.OpenConfigurationSetAsync(IDSCFile file, CancellationToken ct)
   at WinGetStudio.ViewModels.ConfigurationFlow.PreviewFileViewModel.OpenConfigurationFileAsync(StorageFile file)
Steps to reproduce

Try to load the above configuration via open configuration.

Expected behavior

Configuration is loaded.
dsc config validate -f .\dev-setup.dsc.yaml prints no errors or warnings for the configuration and says it is valid.

Actual behavior

Configuration file version https://aka.ms/dsc/schemas/v3/config/document.json is not known error

Environment

WinGet Studio (Experimental) - 0.100.320.0
OS Version: 10.0.26200.7171
OS Architecture: x64

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in WinGetStudio.Services.DesiredStateConfiguration.Services.DSCOperations, following OpenConfigurationSetInternalAsync and the ConfigurationSetParser errors shown in the stack trace. Check how the $schema value is recognized when PreviewFileViewModel opens the file, then verify that the provided DSC v3 configuration loads successfully and that dsc config validate remains error-free.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.