title: "Docker build path not found" in docker support Visual Studio Project
body: <p>I have C# solution, with 4 projects, 3 being Dlls and 1 is the console application uses those DLLs.</p>
  
  <p>I tried to use docker support on visual studio to build my docker image, it fails 
  My dockerfile as below:</p>
  
  <pre><code>&gt; FROM microsoft/windowsservercore:ltsc2016 
  &gt; EXPOSE 80 
  &gt; EXPOSE 1433 
  &gt; EXPOSE 29051
  &gt; 
  &gt; COPY bin/x64/debug /root/ ENTRYPOINT
  &gt; /root/RmsMainConsole.exe
  </code></pre>
  
  <p>I CD into directory where my dockerfile is at and execute docker build.
  Error: </p>
  
  <pre><code>Docker CLI command : docker build -t rmsmainconsole:self-hosted .
  
  Sending build context to Docker daemon  55.61MB
  Step 1/6 : FROM microsoft/windowsservercore:ltsc2016
   ---&gt; 9dbf7f740334
  Step 2/6 : EXPOSE 80
   ---&gt; Using cache
   ---&gt; ad0ad85fd107
  Step 3/6 : EXPOSE 1433
   ---&gt; Using cache
   ---&gt; 81ba13dbd4d4
  Step 4/6 : EXPOSE 29051
   ---&gt; Using cache
   ---&gt; 1fa3db800abf
  Step 5/6 : COPY bin/x64/debug /root/
  COPY failed: CreateFile \\?\C:\ProgramData\Docker\tmp\docker-builder043346063\bin\x64\debug: The system cannot find the path specified.
  </code></pre>
  
  <p>You can see that PATH couldn't be found. 
  Whereas i tried to create docker file on my .sln level. 
  I changed one line in my docker file. </p>
  
  <p>COPY RmsMainConsole/bin/x64/debug /root/   </p>
  
  <p>Note: "RmsMainConsole" directory has been added.</p>
  
  <p>i executed the docker build at my .sln level and i built it successfully.
  Logs are:</p>
  
  <pre><code>Sending build context to Docker daemon   1.15GB
  Step 1/6 : FROM microsoft/windowsservercore:ltsc2016
   ---&gt; 9dbf7f740334
  Step 2/6 : EXPOSE 80
   ---&gt; Running in fe97cf236d5a
  Removing intermediate container fe97cf236d5a
   ---&gt; c31e236353b6
  Step 3/6 : EXPOSE 1433
   ---&gt; Running in f031fce5ecba
  Removing intermediate container f031fce5ecba
   ---&gt; 96c704c68ffb
  Step 4/6 : EXPOSE 29051
   ---&gt; Running in 365e2be43d0e
  Removing intermediate container 365e2be43d0e
   ---&gt; d30c3fb2214b
  Step 5/6 : COPY RmsMainConsole/bin/x64/debug /root/
   ---&gt; b214c1edc256
  Step 6/6 : ENTRYPOINT /root/RmsMainConsole.exe
   ---&gt; Running in 5c819915532a
  Removing intermediate container 5c819915532a
   ---&gt; 247f01bb9b82
  Successfully built 247f01bb9b82
  Successfully tagged rmsmainconsole:self-hosted
  </code></pre>
  
  <p>I noticed two difference between the successful and failed build:
   1. Size on the docker context 
   2. The logs at step 5/6:</p>
  
  <p>COPY failed: CreateFile \?\C:\ProgramData\Docker\tmp\docker-builder043346063\bin\x64\debug: The system cannot find the path specified.</p>
  
  <p>and</p>
  
  <p>---> b214c1edc256</p>
  
  <p>How should i use visual studio docker support to build my docker image. Where did i go wrong ? </p>