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 ASP.NET Core applications for deployment by packaging their files into a publish directory.
- How deep it goes
- Explains publish output, command options, and running the resulting DLL, with additional guidance for IIS and Linux deployment.
- Examples
- Uses an ASP.NET Core app, a Release publish folder, a Windows runtime identifier, and an IIS web.config file.
- What you can do after
- Apply it via the .NET CLI to create a Release publish folder and run the published application DLL.
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.
Also covered in
Related concepts
- container imageproduces · A container image is a packaged, generally immutable filesystem and metadata template used to create and run containers.
Questions about dotnet publish
What is dotnet publish?
dotnet publish is a .NET CLI command that compiles an application and prepares its dependencies and supporting files for deployment.
Which Manning books explain dotnet publish?
ASP.NET Core in Action, 3e and .NET MAUI in Action.
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.

