I am using Visual Studio with ASP.NET Core and run the web site using just F5 or Ctrl+F5 (not using command line directly). I would like to use the \"dotnet watch\" function
If you want to use ASP.NET 2.x or 3.x you need to change it a bit.
The syntax is slightly different
"Watch": {
"executablePath": "dotnet.exe",
"workingDirectory": "$(ProjectDir)",
"commandLineArgs": "watch run",
"launchBrowser": true,
"launchUrl": "http://localhost:5000/",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
UPDATE: added "workingDirectory" and removed specific path. It's more generic now.