Skip to content

.NET Core Docker enabled project doesn't work with the 2.1-preview2 images #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MichaelSimons opened this issue Apr 18, 2018 · 2 comments
Assignees

Comments

@MichaelSimons
Copy link
Member

Repo Steps

  1. Create a new ASP.NET Core Web Application
  2. Choose Web Application and Enable Docker Support
  3. Navigate to the generated Dockerfile and change the .NET base images to use the 2.1-preview2 images.
    1. FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base
    2. FROM microsoft/dotnet:2.1-sdk AS build
  4. F5

Actual Results
image

Expected Results
Web application should launch with the debugger attached

Workaround
Change the base stage in the Dockerfile to the following:

FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base
RUN apt-get update \
	&& apt-get install -y --no-install-recommends \
		libcurl3 \
		libunwind8 \
		libuuid1 \
	&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
EXPOSE 80
@dbreshears
Copy link
Member

There is a vsdbg fix that is needed to fix debugging on 2.1 images. The updates are in testing and should be available in the next few days I would think.

@dbreshears dbreshears self-assigned this Apr 26, 2018
@gregg-miskelly
Copy link
Member

gregg-miskelly commented Apr 27, 2018

This issue should now be fixed. https://aka.ms/getvsdbgps1 now points at a version of vsdbg that once again has the same runtime dependencies as the .NET Runtime.

If you have applied the work around, you can now remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants