When I press run button in Rider (net core) it run the following command:
/usr/local/share/dotnet/dotnet /pathtomyproject/myproject.dll
But I need to run the project with the argument "watch", if I write this command in Rider Edit Configurations's arguments I got error:
Unhandled Exception: System.FormatException: Unrecognized argument format: 'watch'.
I know to run with watch tool is dotnet watch run
, and I know too that I can run that command in the terminal.
My question is if I can configure Rider to run this way when I press Run button? or... maybe Rider has an Edit and Continue feature that I don't know?
There is an answer on Rider forum: https://rider-support.jetbrains.com/hc/en-us/community/posts/360001346139-Simpler-integration-for-Microsoft-DotNet-Watcher-Tools
In short:
Edit
The external tool settings should be:
c:\program files\dotnet\dotnet.exe
watch run
<path to your project folder>