microsoft / microsoft/winget-studio

Does not find dsc executeable path

Open
#194 4 comments 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

I installed dsc as admin via winget.
Path to dsc exe is C:\Program Files\WinGet\Links\dsc.EXE
dsc.exe is in the path env variable i opened winget studio after i installed dsc.
If I now try to validate a dsc ressource i get the following error:
Unable to find the specified file.
Log:

[2025-11-30 14:41:36.524 ERR] [WinGetStudio v0.100.320.0] [FLOLAPTOP] [8] (WinGetStudio.Services.DesiredStateConfiguration.Services.DSCOperations) System.IO.FileNotFoundException: Could not find DSC v3 executable path.
   at Microsoft.Management.Configuration.Processor.DSCv3.Helpers.ProcessorSettings.get_EffectiveDscExecutablePath()
   at Microsoft.Management.Configuration.Processor.DSCv3.Helpers.ProcessorSettings.ToString()
   at Microsoft.Management.Configuration.Processor.DSCv3ConfigurationSetProcessorFactory.CreateSetProcessorInternal(ConfigurationSet set, Boolean isLimitMode)
   at Microsoft.Management.Configuration.Processor.Factory.ConfigurationSetProcessorFactoryBase.CreateSetProcessor(ConfigurationSet incomingSet)
[2025-11-30 14:41:36.528 ERR] [WinGetStudio v0.100.320.0] [FLOLAPTOP] [8] (WinGetStudio.Services.DesiredStateConfiguration.Services.DSCOperations) [FAIL] Microsoft.Management.Configuration.dll!00007FFCDF4D11A1: LogHr(19) tid(830) 80070002 Das System kann die angegebene Datei nicht finden.

[2025-11-30 14:41:36.529 ERR] [WinGetStudio v0.100.320.0] [FLOLAPTOP] [8] (WinGetStudio.Services.DesiredStateConfiguration.Services.DSCOperations) [FAIL] Microsoft.Management.Configuration.dll!00007FFCDF4B1220: LogHr(20) tid(830) 80070002 Das System kann die angegebene Datei nicht finden.

[2025-11-30 14:41:36.530 ERR] [WinGetStudio v0.100.320.0] [FLOLAPTOP] [2] (WinGetStudio.ViewModels.ValidationViewModel) An error occurred while executing a DSC operation.
System.IO.FileNotFoundException: Unable to find the specified file.
   at WinGetStudio.Services.DesiredStateConfiguration.Services.DSCOperations.GetUnitAsync(IDSCUnit inputUnit, CancellationToken ct)
   at WinGetStudio.Services.DesiredStateConfiguration.Services.DSC.GetUnitAsync(IDSCUnit unit, CancellationToken ct)
   at WinGetStudio.ViewModels.ValidationViewModel.<OnGetAsync>b__21_0(IDSCUnit dscUnit)
   at WinGetStudio.ViewModels.ValidationViewModel.RunDscOperationAsync(Func`2 action)
Steps to reproduce

Install dsc via winget as admin.
Open winget studio and try to validate a dsc resource.

Expected behavior

dsc.exe is found
dsc --version in the terminal works fine

Actual behavior

dsc.exe is not found

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 at the stack-trace entry point ProcessorSettings.get_EffectiveDscExecutablePath and follow how DSCOperations invokes validation. Reproduce with dsc installed via winget and confirm the terminal can run dsc --version; done means WinGet Studio locates the executable and validates a DSC resource successfully.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.