Closed felschr closed 7 years ago
Microsoft.Docker.Sdk isn't included in the .NET Core SDK. It's only available from Visual Studio. See https://github.com/dotnet/cli/issues/6178.
Adjust docker-compose.ci.build.yml to use image microsoft/aspnetcore-build:2.0
What was the original image VS gave you? Changes are good they picked a different image, one that is designed to work with VS tooling.
@natemcmaster
I was using microsoft/aspnetcore-build:1.0-1.1
before without issues.
Try this one: microsoft/aspnetcore-build:1.0-2.0
. We had to custom make these "CI build" images to work with VS.
@natemcmaster oh, awesome! I'll try it as soon as possible. I didn't notice those builds. Is it documented somewhere where the differences between these images are?
Is it documented somewhere where the differences between these images are?
None that I'm aware of. :-( VS + Docker tooling has some rough edges, and this is one of them.
Aaaaand it's working!! Thanks a lot, @natemcmaster !
Happy to help. Glad its working for you.
For anyone else hitting this issue, the solution is to use microsoft/aspnetcore-build:1.0-2.0
.
Close in favor of dotnet/cli#6178.
@natemcmaster Is this image tightly coupled with VS? Still having the same issue when using microsoft/aspnetcore-build:1.0-2.0
$ dotnet --info
.NET Command Line Tools (2.1.101)
Product Information:
Version: 2.1.101
Commit SHA-1 hash: 6c22303bf0
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/2.1.101/
Microsoft .NET Core Shared Framework Host
Version : 2.0.6
Build : 74b1c703813c8910df5b96f304b0f2b78cdf194d
Just tried, and I couldn't repro MSB4236 with microsoft/aspnetcore-build:1.0-2.0
. If you're having trouble, please open a new issue with repro steps.
Heads up - we are deprecating microsoft/aspnetcore-build:1.0-2.0
. See https://github.com/aspnet/Announcements/issues/292
Steps to reproduce the issue
(e.g. copy your Dockerfile or docker-compose.yml file here)
docker-compose.ci.build.yml
to use imagemicrosoft/aspnetcore-build:2.0
if not already setExpected behavior
Build succeeds
Actual behavior
Build fails with:
/src/docker-compose.dcproj : error MSB4236: The SDK 'Microsoft.Docker.Sdk' specified could not be found.
Additional information (e.g. issue happens only occasionally)
Happened to me after upgrading from ASP.NET Core 1.0 to 2.0. I first noticed this issue when my build on VSTS failed. Building from within Visual Studio 2017 works.
Output of
dotnet --info
Output of
docker info