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?
Rider overtakes Visual Studio in terms of performance. If you're tired of slow performance, Rider is a good choice. It starts faster than Visual Studio and compiles code faster as well.
dotnet watch is a tool that runs a . NET Core CLI command when source files change. For example, a file change can trigger compilation, test execution, or deployment. This tutorial uses an existing web API with two endpoints: one that returns a sum and one that returns a product.
For . NET Framework projects, JetBrains Rider will use MSBuild or Mono's XBuild to build your solution and projects. This means that JetBrains Rider can build any project that is MSBuild based (for example, . csproj).
Most of ReSharper's 60+ refactorings are already available in Rider, and its 450+ context actions are all there.
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>
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...
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With