microsoft / microsoft/devcenter-catalog

customization task "install-vs-extension" cannot install GitHub Copilot

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

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:

  1. Use the base image "Visual Studio 2022 Enterprise on Windows 11 Enterprise + Microsoft 365 Apps 23H2"
  2. Create the dev box using the base image in step 1 and upload the yaml file as below:
image
  1. 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()
image

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.