microsoft / DockerTools

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

Passing Custom Build Arguments to Dotnet Build When Debugging Docker Compose Project #438

Open bt-Knodel opened 3 months ago

bt-Knodel commented 3 months ago

I'd like to be able to pass a build arguments when debugging a docker compose project in visual studio to one of the dependent services.

In particular, we build a few projects with RuntimeIdentifier, and when running docker compose I'd like for this to be set explicitly to what the docker container runs on. Ideally, I could default it to windows (the current environment) and when debugging docker compose, set it explicitly to linux-x64.

Any ways to address this?