aspnet / aspnet-docker

[Archived] ASP.NET Core Docker images for 1.x. Go to https://github.com/dotnet/dotnet-docker for 2.1 and up.
https://asp.net
719 stars 171 forks source link

Microsoft.Docker.Sdk Missing From aspnetcore-build:2.0 #302

Closed mattwcole closed 7 years ago

mattwcole commented 7 years ago

It looks like solutions containing a .dcproj project will not build in the latest aspnetcore-build images.

Steps to reproduce the issue

  1. Create a new aspnetcore 2.0 project in Visual Studio enabling Docker support
  2. Update the image used in docker-compose.ci.build.yml from microsoft/aspnetcore-build:1.0-1.1 to microsoft/aspnetcore-build:2.0 (this is required to build a 2.0 project)
  3. Run docker-compose -f docker-compose.ci.build.yml up from the command line

Expected behavior

Solution should build inside Docker container.

Actual behavior

The build fails with the following message:

error MSB4236: The SDK 'Microsoft.Docker.Sdk' specified could not be found.
mattwcole commented 7 years ago

I've just noticed this is a duplicate of #299 - using aspnetcore-build:1.0-2.0 works!