Closed tomfanara closed 1 year ago
In which project is the configuration not being recognized?
Have you confirmed in the solution configuration manger that the configuration is being applied to that project (a solution configuration can apply different project configurations to different projects)? To open the UI and check: Which opens: This will show you a list of the individual project configurations being used for each solution configuration.
Hello thanks see below
The below is my docker-compose.dcproj file
below is my docker folder setup
Its not recognizing the Dev configuration
updated docker-compose.dcproj
Hello this fixed it for me!
Glad you were able to get unblocked! One comment as long as I've read your .dcproj: if you name your compose files: docker-compose.dev.yml and docker-compose.dev.override.yml then you can just set DockerComposeBaseFilePath to docker-compose.dev, no need for AdditionalComposeFilePaths.
You also don't need to set any property in the second PropertyGroup that has the same value as the first PropertyGroup, it doesn't hurt anything, but you don't need to maintain two copies.
Closed, since this appears to be fixed for you.
I want to create 2-3 docker compose overrides as in
Dev, QA and Test. I would like to add these as Visual Studio Profile Configurations as in Debug or Release but add Dev, QA and Test and have VS switch out my overrides accordingly.
I followed a prior post in stackoverflow Setup multiple docker-compose envs in Visual Studio but it does not seem to recognize my PropertyGroup Condition="'$(Configuration)' == 'Dev'"
Any help appreciated!