microsoft / microsoft/VisualStudioDSC

Visual studio work load installation will fail if VS is running.

Open
#33 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
16
Forks
6
PR merge metrics
No merged PRs in 30d

Description

The original issue was filed over at winget-cli bu @kevinla-test:

Brief description of your issue

When running "VS" and running a config file. If the config file requires to add a workload and it does not exist, the install will fail with 8006.
It would be better to say that the IDE is running. Close it and try again.

VSComponents🛡 [Workloads ManagedDesktop]

The configuration unit failed while attempting to apply the desired state.
Visual Studio Installer failed with error code 8006 using arguments: modify --productId Microsoft.VisualStudio.Product.Community --channelId VisualStudio.17.Release --quiet --norestart --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workl…

Some of the configuration was not applied successfully.

Steps to reproduce

Have VS community installed and some work loads. I chose managed desktop.
Run the IDE
Now run a config file that adds a new workload.

Rather than succeed it fails.

Expected behavior

Expect to tell the user to shut down the IDE.

Actual behavior

Gives error but no direction

Environment
PS C:\Users\kevinla\.nuget\packages> winget --info
    Windows Package Manager (Preview) v1.11.280-preview
    Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.26410.1000
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.26.280.0

Contributor guide

No contributing guide indexed for this repository

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 by reproducing the issue with Visual Studio running and a configuration that adds a missing workload, using the VSComponents unit and the reported error 8006 as the entry point. Inspect how the unit reports the failed Visual Studio Installer operation; done when the failure clearly tells the user to close the IDE and retry.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.