microsoft / DockerTools

Tools For Docker, including Visual Studio Provisioning and Publishing
Other
175 stars 26 forks source link

Docker support for multiple projects in different solution folders #348

Closed adeliab closed 2 years ago

adeliab commented 2 years ago

I have a repo structure similar to this:

When I right click "Add Docker Support" in my API project, I get this error image

I assume this is because there are references to projects that are located in a different solution folder (the Core projects).

Is there a Docker Tools setup that would support this scenario? I would like to have the same capability as the 'default' Docker support - with the FastMode enabled and being able to debug from VS (Code)

If I create a docker file on the root folder all the projects, will the debugger still work and be able to mount the other folders?

NCarlsonMSFT commented 2 years ago

I tested this locally to make sure, if you temporarily create a solution in the root directory and add the relevant projects you can add docker support to the web project. It will add the relevant files and properties to the project so that it will work from the existing solution; you can then delete the temporary solution.

adeliab commented 2 years ago

I tested this locally to make sure, if you temporarily create a solution in the root directory and add the relevant projects you can add docker support to the web project. It will add the relevant files and properties to the project so that it will work from the existing solution; you can then delete the temporary solution.

i see, the file is generated. thanks!