Compile in release mode

dotnet build

  • Builds a .NET application and its dependencies.
    More information: <https://learn.microsoft.com/dotnet/core/tools/dotnet-build>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

dotnet build --configuration {{Release}}

click the source code to copy install dotnet build on any operating system with command-not-found.com