Summary
Gets or sets the container settings.
When set, the project is published as a container image using the
PublishContainer target,
and the container properties take precedence over the same properties set via MSBuildSettings.
- Namespace
- Cake
.Common .Tools .DotNet .Publish - Containing Type
- Dot
Net Publish Settings
Syntax
public DotNetPublishContainerSettings Container { get; set; }
Examples
DotNetPublish("./src/hwapp/hwapp.csproj", new DotNetPublishSettings
{
Container = new DotNetPublishContainerSettings
{
BaseImage = "mcr.microsoft.com/dotnet/runtime:10.0",
User = "root",
OS = DotNetContainerOS.Linux,
Arch = DotNetContainerArchitecture.X64
}
}.WithContainerLocalRegistry(DotNetContainerLocalRegistry.Podman, "cake-it-hwapp", "test"));
Value
| Type | Description |
|---|---|
| Dot |
