diff --git a/99.-FAQ-(Frequently-Asked-Questions).md b/99.-FAQ-(Frequently-Asked-Questions).md index 0263c36..b6e894f 100644 --- a/99.-FAQ-(Frequently-Asked-Questions).md +++ b/99.-FAQ-(Frequently-Asked-Questions).md @@ -86,4 +86,28 @@ Did you mean to run dotnet SDK commands? Please install dotnet SDK from: That usually happens when you just switched from Windows Containers to Linux Containers in "Docker for Windows". This might be a temporal bug in "Docker for Windows" environment. -Workaround: Reboot your machine and you should be able to deploy to Linux Containers without these issues. \ No newline at end of file +Workaround: Reboot your machine and you should be able to deploy to Linux Containers without these issues. + + +### When I build the bits with the Docker build-container, when it is running "dotnet publish" against the whole solution, it tries to use the docker-compose.dcproj as if it were a .NET project and you get the error 'The SDK Microsoft.Docker.Sdk specified could not be found' + +This issue is related to this issue/bug: +https://github.com/dotnet/cli/issues/6178 + +#### WORKAROUND when using a Docker Linux build-container: +When trying to get the docker image (microsoft/aspnetcore-build) working see: +https://github.com/aspnet/aspnet-docker/issues/299 + +Use the microsoft/aspnetcore-build:1.0-2.0 image that comes with the Microsoft.Docker.Sdk. + +#### WORKAROUND until fixed, if using just .NET Core with NO Docker build-container: + +Copy the Microsoft.Docker.Sdk folder from C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks or C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks if you are using the Enterprise version (Only the Sdk subfolder. Do not copy build and tools subfolders). + +Then paste it on C:\Program Files\dotnet\sdk\2.0.0\Sdks on Windows or /usr/share/dotnet/sdk/2.0.0./Sdks on Linux (Ubuntu) +Then dotnet build SolutionName.sln will work fine. +These steps will fix both errors: + +error MSB4236: The SDK 'Microsoft.Docker.Sdk' specified could not be found. + +error MSB4022: The result "" of evaluating the value "$(DockerBuildTasksAssembly)" of the "AssemblyFile" attribute in element is not valid.