Cant add Docker Support Visual Studio 2017 Cant add Docker Support Visual Studio 2017 docker docker

Cant add Docker Support Visual Studio 2017


Edit the .csproj file and search for "docker" - remove the following line:

<DockerComposeProjectPath>..\docker-compose.dcproj</DockerComposeProjectPath>

Also delete the file "Dockerfile" which should be in the same folder as the .csproj file.


Try double-checking your .csproj, .sln, and solution and project folders for any references to Docker. There have been a few times where I have run into this, usually caused by adding, removing, and trying to re-add Docker support. Clearing out the Dockerfile in the project folder along any other Docker stuff in the solution solved the issue in my case.


That could be because of your solution already contain docker-compose with dockerignore and docker-compose.yml.

If you want to add it again, Try to remove it and check.

enter image description here