publish
- First builds the project and then publishes it
- By default the build configuration
Debugis used
dotnet publish
dotnet publish -c "Release" # Specify build configuration
Debug is useddotnet publish
dotnet publish -c "Release" # Specify build configuration