visual studio dotnet watch code example
Example: dotnet core watch visual studio
1st Step: In launchsetting.json add profile
"Watch": {
"executablePath": "C:\\Program Files\\dotnet\\dotnet.exe",
"commandLineArgs": "watch run",
"workingDirectory": "$(ProjectDir)",
"launchBrowser": true,
"launchUrl": "http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
2nd Step: Install Nuget Package
"Microsoft.DotNet.Watcher.Tools"