How to Use Dotnet Watch: Tips and Tricks for Streamlining Development

When you are developing .NET applications, there are times when you need to compile your code on the fly.

This can be a time-consuming process, but Dotnet watch makes it much easier. In this article, we will discuss how to use Dotnet watch and some of the benefits that it offers. We will also provide some tips for streamlining your development process with Dotnet watch.

Dotnet watch is a .NET development tool that allows you to automatically recompile your code as you make changes. This can be a huge time-saver, especially if you are working on a large project. Dotnet watch also provides other benefits, such as the ability to run tests automatically and the ability to see all of the changes that you have made in one place.

Use Dotnet watch

To use Dotnet watch, you need to install the .NET Core SDK. Once you have installed the SDK, you can use the “dotnet” command to start the service. To start Dotnet watch, type the below into your terminal (from same location the app is located)

dotnet watch run

This will start the service and begin monitoring your code for changes.

Once Dotnet watch is running, you can make changes to your code and save them. The service will automatically recompile your code and update the application. You can also use the “dotnet watch” command to run tests automatically. To do this, type:

dotnet watch test

This will run all of the tests in your solution and provide you with feedback on any failures.


Dotnet watch is a powerful tool that can help you save time during development. By using Dotnet watch, you can automatically recompile your code and run tests without having to manually do these tasks. This can streamline your development process and help you get your applications to market faster. Try using Dotnet watch on your next .NET project and see how it can help you save time.