Visual studio work load installation will fail if VS is running.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- powershell
- Domain
- devtools
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.
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
- Dominant language
- PowerShell
- Stars
- 16
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
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.
More from microsoft/VisualStudioDSC
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
microsoft/VisualStudioDSC#37 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
microsoft/VisualStudioDSC#34 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
microsoft/VisualStudioDSC#24 · 1 comment ·
All issues in microsoft/VisualStudioDSC
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
hemilabs/ui-monorepo#2332 ·
-
Help-Wanted Needs-Triage Package-Update
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/winget-pkgs#438662 ·
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·