Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Latest commit

 

History

History

WatchMultipleProjects

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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.