dotnet / sdk-container-builds

Libraries and build tooling to create container images from .NET projects using MSBuild

Home Page:https://learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to specify /t:PublishContainer in pubxml?

Code-DJ opened this issue · comments

Is it possible to specify /t:PublishContainer in a pubxml file? That way we can run:

dotnet publish /p:PublishProfile=MyContainerProfile.pubxml

Unfortunately this isn't possible - pubxml files only contain MSBuild properties and cannot influence what target will be run.