microsoft / microsoft/devcenter-catalog
customization task "install-vs-extension" cannot install GitHub Copilot
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 52
- Forks
- 194
- Avg merge
- 16h 53m
- Merged PRs (30d)
- 1
Description
Describe the bug
The dev box customization task "install-vs-extension" cannot work well
To Reproduce
Steps to reproduce the behavior:
- Use the base image "Visual Studio 2022 Enterprise on Windows 11 Enterprise + Microsoft 365 Apps 23H2"
- Create the dev box using the base image in step 1 and upload the yaml file as below:
- Login to the dev box and open VS
Actual result:
VS extension GitHub Copilot is NOT installed.
Expected behavior
VS extension GitHub Copilot is installed.
Screenshots
Dev Box VM Details (please complete the following information):
- OS version: Visual Studio 2022 Enterprise on Windows 11 Enterprise + Microsoft 365 Apps 23H2
Additional context
This is because when dev box task is triggered, system role is used.
When the user is system role, the vsix file will be downloaded under C:\Windows\System32\config\systemprofile
When VSIXInstaller.exe want to use this vsix file, it cannot find the vsix file. Because the vsix file is under limited directory.
Suggestion: When downloading the vsix file, put it under other normal folder like "C:\temp-vsix" instead of [IO.Path]::GetTempPath()
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 with the customization task "install-vs-extension" and trace where the VSIX is downloaded and passed to VSIXInstaller.exe when running under the system role. Verify the behavior on the stated Visual Studio 2022 Windows 11 base image; done means GitHub Copilot is installed successfully rather than left under the system profile's temporary directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100