You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
When a developer debugs the docker compose project, I'd like for my app to build to Linux. When they build and run the console app directly, I'd like for it to be windows. The goal is to transition to Linux after a short period rather than all at once.
The best way I can think of to do what you want would be to use Build Configurations for the different RuntimeIdentifiers. You can find an example for how to do that with compose projects here: ComposeConfigurationExample
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?
The text was updated successfully, but these errors were encountered: