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

Add counter to dotnet watch #387

@natemcmaster

Description

@natemcmaster

Make it possible to detect from the inner process how many times the process has been restarted.

Ideas:
set the environment variable DOTNET_WATCH_ITERATION to an integer, starting at 0

Example:

> dotnet watch run
Starting: dotnet run, DOTNET_WATCH_ITERATION=0
(Change to file, dotnet-run is killed)
Retarting: dotnet run, DOTNET_WATCH_ITERATION=1

cc @danroth27

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions