Dotnet publish
dotnet publish is a .NET CLI command that compiles an application and prepares its dependencies and supporting files for deployment.
ASP.NET Core in Action, 3e
dotnet publish is a .NET CLI command that prepares an application and its dependencies for deployment to a target environment.
- How it is used
- Prepares an ASP.NET Core app for deployment by building a folder containing its DLL, dependencies, and required files.
- How deep it goes
- Shows a Release publish command and output, then distinguishes running the published DLL from running a project.
- Examples
- Uses a Release publish command, a published DLL run command, and IIS and Linux deployment paths.
- What you can do after
- Operate/configure it to produce Release output, run the published DLL, and carry the output into server deployment.
Read how ASP.NET Core in Action, 3e explains dotnet publish →
.NET MAUI in Action
dotnet publish is a .NET CLI command that compiles, packages, and prepares a .NET application for deployment.
- How it is used
- Deploys a .NET MAUI Android application from GitHub Actions as a signed release artifact.
- How deep it goes
- Explains command options and MSBuild pass-through arguments, but stops short of describing publish internals.
- Examples
- Uses a .NET MAUI Android project, a keystore, signing secrets, a signed AAB, and an uploaded GitHub Actions artifact.
- What you can do after
- Operate/configure dotnet publish to produce and sign an Android AAB in a GitHub Actions workflow.
Related concepts
- container imageproduces · A container image is a packaged filesystem and configuration artifact from which a container can be created and run.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

