In short.
SDK Container Publishing is an assistant skill for .NET developers publishing container images, with Dockerfile-style custom build commands outside its scope. Its strongest material explains output destinations, explicit release tags, property evaluation order and common publishing failures. The folder contains documentation and examples; assistant-host compatibility, successful builds and registry compatibility are not established, and nothing was executed.
Researched and written by an AI model and checked by a second AI model. How it works
The supplied manifest covers the complete skills/sdk-container-publishing folder at revision 5ca5db8cf25566f19d2a5dc53204d4af22b23a0d: SKILL.md and references/ci-cd.md, property-reference.md, real-world-examples.md, self-contained-and-aot.md and troubleshooting.md. The repository-root LICENSE is the accompanying notice. Other repository skills, assistant installation material, linked external documentation and the underlying Petabridge projects are outside this scope. No commands, builds, registry operations, container runs or assistant integrations were executed.
The overview
Identity
The resource is the sdk-container-publishing folder in Aaronontheweb/dotnet-skills [https://github.com/Aaronontheweb/dotnet-skills/tree/master/skills/sdk-container-publishing]. It contains SKILL.md and five reference documents covering CI/CD, properties, structural examples, self-contained and ahead-of-time compilation, and troubleshooting.
The skill's front matter names it sdk-container-publishing and sets invocable: false. Installation, activation and the meaning of that flag in particular assistant hosts are not explained in the supplied folder.
Assessment
This is a useful reference for services whose container requirements fit the .NET SDK's publishing settings. It connects a minimal publishing command to practical release problems: missing version tags, unexpected image names, unavailable local daemons and conflicting tag properties.
Its examples provide configuration patterns rather than evidence of successful execution. Build reliability, deployment behavior and compatibility with a particular registry remain unassessed.
Users
The intended users are .NET developers and release engineers asking an assistant to configure container publishing, choose an output destination or diagnose an incorrect image tag, name or base image.
Beginners get a minimal project pattern and explanations of defaults. Experienced developers get property names, CI authentication options, centralized repository settings and distinctions between multiple architectures, multiple target frameworks and separate deployable projects. Readers still need familiarity with .NET projects and basic container concepts.
Capabilities
The instructions cover three image destinations: a local Docker or Podman daemon, a portable archive and a direct registry push. They explain repository names, single or multiple tags, exposed ports, labels, image environment variables, application commands and base-image overrides.
Additional material covers multi-architecture OCI image indexes, Windows base-image selection, self-contained deployment and ahead-of-time compilation, which compiles application code before runtime. Troubleshooting includes tag conflicts, property ordering, multi-architecture build races and publishing a project with several target frameworks.
Using it
Requirements
Using the publishing guidance requires a .NET project and an SDK supporting the requested container features. The example project targets net10.0, but the folder does not establish a universal minimum SDK or a complete compatibility matrix for every project type.
The default local output needs a running Docker or Podman daemon. Archive creation and direct registry publishing do not need that daemon; private registry publishing needs suitable authentication. Running the resulting image locally requires a container runtime.
The references state that multi-architecture publishing requires SDK 8.0.405, 9.0.102, or 9.0.2xx onward. They place DOTNET_CONTAINER_INSECURE_REGISTRIES support at SDK 9.0.100+, and Docker/Podman configuration-based HTTP versus HTTPS handling at SDK 8.0.400+. These version claims were not independently validated.
Mechanism
The skill guides an assistant through dotnet publish /t:PublishContainer. The SDK compiles the application and creates an image using MSBuild properties and items. ContainerRegistry selects a registry destination, while ContainerArchiveOutputPath selects archive output; otherwise the documented default is a local daemon.
The guide describes automatic base-image selection: runtime-deps for self-contained applications, aspnet for ASP.NET Core and runtime for other applications. It also describes Alpine and chiseled image inference and explicit ContainerBaseImage settings for Windows.
Image tagging is separate from application versioning. The references say that .NET 8 onward defaults to latest when neither tag property is set. ContainerImageTag and ContainerImageTags are mutually exclusive, with simultaneous use rejected as CONTAINER2008.
Setup
Choose the intended image destination, set ContainerRepository if the assembly name is unsuitable, and define either ContainerImageTag or ContainerImageTags. The basic publishing command is dotnet publish /t:PublishContainer -c Release. Set ContainerArchiveOutputPath for an archive or ContainerRegistry for a direct push.
For the documented dual-tag pattern, define ContainerImageTags as $(VersionPrefix);latest and supply VersionPrefix on the command line, in Directory.Build.props or earlier in the project file. Otherwise the guide warns that the version portion can be empty during property evaluation.
For direct registry authentication, the guide documents DOTNET_CONTAINER_REGISTRY_UNAME and DOTNET_CONTAINER_REGISTRY_PWORD. It also describes Docker/Podman configuration and docker login with --password-stdin. Assistant-side installation instructions are absent.
Example
For a project that already sets ContainerRepository to my-service and ContainerImageTags to $(VersionPrefix);latest, an illustrative release command following the documented pattern is: dotnet publish src/MyService/MyService.csproj -p:VersionPrefix=1.2.3 -p:ContainerRegistry=docker.example.internal -c Release /t:PublishContainer.
With suitable registry authentication, the intended result is an image in the placeholder registry with tags 1.2.3 and latest. The early VersionPrefix value supplies the version tag. Adding ContainerImageTag would conflict with the project's ContainerImageTags setting. This example was not executed.
Assessment & evidence
Limitations
The SDK approach cannot perform Dockerfile RUN steps or arbitrary image-layer customization. The guide recommends a prepared custom base image or a Dockerfile when those requirements arise. Its claim that Docker is unnecessary for building must be read alongside the output rules: the default local destination still requires a daemon.
The structural examples acknowledge that some registries reject direct SDK pushes, without identifying a compatibility matrix. A local-daemon build followed by a separate push is the documented fallback.
Multi-architecture publishing produces an OCI image index. ContainerPublishInParallel=false serializes only the inner architecture-specific publishes, not separate projects. Projects with multiple target frameworks must select one framework for each container publish.
No build logs, runtime results, security scans or measurements establish build speed, image-size savings, reliability or security improvements. The source describes chiseled images as smaller with a reduced attack surface, but supplies no measured comparison.
Reasoning
The approach is most useful when the application can rely on an existing base image and needs a small number of publishing settings. Keeping those settings in the project or Directory.Build.props gives the assistant concrete configuration to explain and troubleshoot.
The most consequential guidance concerns release identity: a successful publish can still produce only latest when version settings are misunderstood. Explicit tag properties and early VersionPrefix assignment address different parts of that problem. Their value here is explanatory; no reduction in release failures is demonstrated.
Alternatives
A Dockerfile is the documented alternative for custom RUN steps and more extensive image customization. A custom ContainerBaseImage can preserve SDK publishing when the required customization already exists in a base image.
Developers who prefer direct documentation can use the linked Microsoft Learn publishing reference [https://learn.microsoft.com/en-us/dotnet/core/containers/publish-configuration]. The skill also links the SDK customization notes [https://github.com/dotnet/sdk-container-builds/blob/main/docs/ContainerCustomization.md]. The contents of those external pages were not supplied, so no independent comparison is established.
Evidence
The source material consists of the skill entry document, all five references and the repository MIT licence. The examples document describes its configurations as structural patterns drawn from Petabridge repositories, with placeholder registry names.
Those underlying projects, runnable sample applications, CI receipts and published images are not included. The documents establish what the skill teaches and which settings it recommends; they do not establish successful execution or deployment.
Access & freshness
Costs
The supplied documents state no purchase price, subscription price or operational cost. The MIT licence grants broad use and copying rights, but does not establish the cost of an assistant host, model usage, CI compute, registry storage or image transfers. Total cost is unknown.
Rights
The repository LICENSE is MIT, with copyright attributed to Aaron Stannard in 2025. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.
The licence supplies the material without warranty and disclaims liability. It supports redistribution of the skill documentation with its notices; rights for third-party base images and application dependencies are not established by this licence.
Freshness
The supplied snapshot is pinned to commit 5ca5db8cf25566f19d2a5dc53204d4af22b23a0d and was captured on 2026-11-17 at 12:11:54.731 UTC. That timestamp does not establish when the files were last changed.
The text includes net10.0 examples and several SDK-specific feature boundaries. Compatibility with SDK versions beyond the documented claims, later repository changes and the current contents of linked external documentation are unknown.
Actions
Start by checking whether the image needs custom build commands. If SDK publishing fits, confirm the SDK's required features, choose the output destination and set the repository and tag properties explicitly. Check that the release name is suitable for the example's VersionPrefix and image-tag usage.
For multiple architectures, check the relationship between RuntimeIdentifiers and ContainerRuntimeIdentifiers and use shell-appropriate quoting. For multiple target frameworks, select a single framework. Confirm authentication and direct-push compatibility with the intended registry.
The guide suggests checking local image listings, confirming an archive exists or pulling the requested registry tag. Application startup and service behavior need separate validation. No results for these checks are supplied.
