aspnetcore/samples/dotnet-watch/WatchMultipleProjects
Ryan Brandenburg f71dad1055 Upgrade to netcoreapp22 2018-05-08 12:04:40 -07:00
..
Test Upgrade to netcoreapp22 2018-05-08 12:04:40 -07:00
Web Upgrade to netcoreapp22 2018-05-08 12:04:40 -07:00
README.md Port CLI tools to be dotnet global tools 2017-12-29 08:42:36 -08:00
watch.csproj Upgrade to netcoreapp22 2018-05-08 12:04:40 -07:00

README.md

Watch multiple projects with dotnet-watch

Prerequisites

Install .NET Core command line. https://dot.net/core

Usage

Open a terminal to the directory containing this project.

dotnet watch msbuild /t:TestAndRun

The "TestAndRun" target in watch.proj will execute "dotnet test" on Test.csproj and then launch the website by calling "dotnet run" on Web.csproj.

Changing any *.cs file in Test/ or Web/, any *.csproj file, or watch.proj, will cause dotnet-watch to relaunch the "TestAndRun" target from watch.proj.