Pragmatism - DevOps - CloudNative - .NET

Building ASP.NET Core docker image on Azure DevOps : no such file or directory

Note : This post was initialy posted at https://pragma3.wordpress.com/2019/05/23/building-asp-net-core-docker-image-on-azure-devops-no-such-file-or-directory/ When you try to build a docker image for a default ASP.NET Core project template on Azure DevOps for the first time, you should encounter the following error : Step 6/26 : COPY [« TestClassicApp.Api1/TestClassicApp.Api1.csproj », « TestClassicApp.Api1/ »] COPY failed: stat /var/lib/docker/tmp/docker-builder260812138/TestClassicApp.Api1/TestClassicApp.Api1.csproj: no such file or directory ##[error]COPY failed: …