JetBrains Rider run with watch
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:
- Open Run Configurations dialog
- Add new "Before launch" configuration
- Select "External tool"
- Fill in "Tool settings" section (see the link above)
Edit
The external tool settings should be:
- Program:
c:\program files\dotnet\dotnet.exe
- Arguments:
watch run
- Working directory:
<path to your project folder>
You can use the "Native Executable" option as a run configuration to make this happen. To do so:
Select Run -> Edit Configuration from the menu options
Click the + icon and select the "Native Executable" option from the list.
In the options that are displayed, provide the following...
- Name: Watch (or whatever you prefer)
- Exe path: /usr/local/share/dotnet/dotnet
- Program Arguments: watch run
- Working directory: [path to your project where .csproj file resides]
Click "OK" to apply/save the changes.
When ready, select Run -> Run... from the menu options. Select the "Watch" option.
You should see the terminal results build/run the app. If you change your controller file, you'll see the file change detected and the app rebuild.