deploy dotnet publish -c Release -o ./../publish/ --no-self-contained -r linux-x64 Hot reload during development: open a terminal type dotnet watch and that's about it from here: https://davemateer.com/2022/03/09/hot-reload-vscode-razor-pages-net6