Docker CI build fails due to missing 'Microsoft.Docker.Sdk' #299
Comments
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.
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 |
Try this one: |
@natemcmaster |
None that I'm aware of. :-( VS + Docker tooling has some rough edges, and this is one of them. |
Aaaaand it's working!! |
Happy to help. Glad its working for you. For anyone else hitting this issue, the solution is to use Close in favor of dotnet/cli#6178. |
@natemcmaster Is this image tightly coupled with VS? Still having the same issue when using
|
Just tried, and I couldn't repro MSB4236 with Heads up - we are deprecating |
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
The text was updated successfully, but these errors were encountered: