Skip to content

It will add a Linux image in Dockerfile when adding Docker files (Windows OS selected) for a .NET project  #3018

@v-ruizh

Description

@v-ruizh

OS: Win 10
Build Version: 20210615.1

Repro Steps:

  1. Switch the Docker Desktop to windows container.
  2. Create and open a .NET Core MVC project in VS Code.
  3. Add Docker files to this project with Windows OS selected.
  4. Check the image name in Dockerfile.

Expect:
The image name is "xxx/aspnet:5.0".
image

Actual:
The image name is "xxx/aspnet:5.0-focal" which is a Linux image.
image

More Info:

  1. Fail to debug the project with the default added image in windows container.
  2. It seems a regression from this PR Use Ubuntu 20.04-based images for .NET scaffolding #2996.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions