publish
Preparing the exact set of files you copy to another machine to run your app.
dotnet publish builds in Release by default (.NET 8+) and writes a self-sufficient folder of the app, its dependencies and runtime settings, ready to deploy.
Loading interactive…
Examples
dotnet publish -o outbuilds in Release and copies exactly what the app needs intoout/.