microsoft / DockerTools

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

Docker Compose fails in release mode #366

Closed EniacMlezi closed 1 year ago

EniacMlezi commented 1 year ago

Getting the following error message when switching my docker compose project to Release build or when running docker-compose up from the command line.

The Microsoft.NET.Build.Containers package does not (yet) support publishing for portable or no-RuntimeIdentifier-defined scenarios. Please specify a runtime of "linux-x64". Specifying a runtime does not help. Besides, since the project is launching in debug mode, I'd expect it to also launch in Release mode.

EniacMlezi commented 1 year ago

Just found out that in my .csproj the <PublishProfile> was set to DefaultContainer which was messing with the Docker Compose chain.