CLI

dotnet publish

Prepares framework-dependent deployment files after a compatible restore. A destination needs a compatible installed runtime. This operation does not itself deploy to a server.

Formal Syntax & Structure

csharp syntaxcsharp
dotnet publish -c Release --no-restore --no-self-contained

Working Example

Example Snippetcsharp
dotnet publish -c Release --no-restore --no-self-contained
C# & .NET Reference