ADD failed: CreateFile \\?\C:\ProgramData\Docker\tmp\docker-builder857651318\bin\Debug\netcoreapp2.0\publish: The system cannot find the path specified.

The answer here helped me: COPY failed trying to install plain Asp.Net MVC app to a container

I also added that as an answer here: https://stackoverflow.com/questions/49803536/vs-2017-copy-failed-docker-file-createfile-the-system-cannot-find-the-file-spe/52414795#52414795