title: Docker compose build copy failed
body: <p>I am really curious to how to interpret and debug with the following error:-</p>
  
  <pre><code>C:\users\project&gt;docker-compose build 
  
  Step 6/15 : COPY *.csproj ./
  ERROR: Service 'invoiceservice' failed to build: COPY failed: no source files were specified
  </code></pre>
  
  <p>This is particular micro-service as i have few more such services.</p>
  
  <p>docker file :-</p>
  
  <pre><code>FROM mcr.microsoft.com/dotnet/core/runtime:2.2 AS base
  WORKDIR /app
  EXPOSE 80
  
  FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build
  WORKDIR /src
  COPY *.csproj ./
  RUN dotnet restore -s https://api.nuget.org/v3/index.json -s https://www.myget.org/F/autoweb/api/v3/index.json
  
  COPY . .
  WORKDIR /src/src/InvoiceManagement/InvoiceService
  RUN dotnet publish -c Release -o out
  
  FROM build AS publish
  
  FROM base AS final
  WORKDIR /app
  COPY --from=publish /app/out .
  ENTRYPOINT ["dotnet", "InvoiceService.dll"]
  </code></pre>
  
  <p>Interesting part is when I build this from Visual Studio IDE, its being built fine but it does not build on CLI.  </p>
  
  <p>docker compose file:-</p>
  
  <pre><code>invoiceservice:
      image: ${DOCKER_REGISTRY-}invoiceservice
      build:
        context: .
        dockerfile: src/InvoiceManagement/InvoiceService/Dockerfile
  </code></pre>
  
  <p>I don't understand why CLI could not find the source location and copy where as VS works fine. Any clue???</p>