Just add Microsoft.DotNet.Watcher.Tools to the .csproj file like the one below:
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.DotNet.Watcher.Tools" Version="1.0.0-msbuild3-final" />
</ItemGroup>
Then, run the dotnet restore command to add the package to your project.
Next time you run your application, just add watch to your command like: dotnet watch run to detect changes and restart your application automatically.
No comments:
Post a Comment