microsoft / microsoft/Windows-Containers

Installing Visual Studio Build Tools in a container is one of the worst experiences for a real value prop to containerization

Open
#589 19 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PowerShell
Stars
551
Forks
76
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
There are no pre-built WCOW images with Visual Studio build tooling from Microsoft.

To Reproduce
Trying to author your own... I am constantly battling issues with how slow and buggy installing and using Visual Studio inside a container is.

Expected behavior
Just give me a WCOW image that I can do

COPY --from=mcr.microsoft.com/visualstudio:17 "C:/Program Files/Visual Studio/" "C:/Program Files/Visual Studio/"

as my installation step. It's 2025, it should be possible to put a bunch of files on a disk in the right places from archives when interacting with the Microsoft ecosystem. Or make winget work. Or anything really. Somehow, the product experience on Linux, which doesn't have product designers, is better!

Configuration:

  • Edition: Server 2022

Additional context
It would be nice if you guys contributed to buildkit because the reliance on whatever the classic Docker builder is doing is crazy. Surely you must be using something else to build container images.

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

Reproduce the Server 2022 workflow for installing Visual Studio Build Tools in a WCOW container, then review the proposed mcr.microsoft.com/visualstudio:17 image and the mentioned winget and buildkit paths. Done means a supported path that avoids the reported slow, buggy installation and enables the requested COPY-style use.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
build-system, infrastructure, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.