microsoft / microsoft/VisualStudioDSC
Visual studio work load installation will fail if VS is running.
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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