Skip to content

Instantly share code, notes, and snippets.

@putrasurya
Created January 26, 2024 02:18
Show Gist options
  • Save putrasurya/a108ab6d51c19cc206ab3e92af5691be to your computer and use it in GitHub Desktop.
Save putrasurya/a108ab6d51c19cc206ab3e92af5691be to your computer and use it in GitHub Desktop.
Blazor Hot Reload
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
// truncated
},
"profiles": {
"http": {
"hotReloadEnabled": true, // add this
// truncated
},
"https": {
"hotReloadEnabled": true, // and this
// truncated
},
"IIS Express": {
// truncated
},
"Debug & Hot Reload": {
"commandName": "Executable",
"workingDirectory": "$(ProjectDir)",
"executablePath": "dotnet",
"commandLineArgs": "watch run debug --launch.profile https"
}
}
}
// then in your VS run the project using profile "Debug & Hot Reload"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment