diff options
Diffstat (limited to 'src/Tools/dotnet-watch/test/TestProjects/AppWithDeps/Program.cs')
-rw-r--r-- | src/Tools/dotnet-watch/test/TestProjects/AppWithDeps/Program.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Tools/dotnet-watch/test/TestProjects/AppWithDeps/Program.cs b/src/Tools/dotnet-watch/test/TestProjects/AppWithDeps/Program.cs index c9338cbc98..a96a0bf341 100644 --- a/src/Tools/dotnet-watch/test/TestProjects/AppWithDeps/Program.cs +++ b/src/Tools/dotnet-watch/test/TestProjects/AppWithDeps/Program.cs @@ -14,7 +14,8 @@ namespace ConsoleApplication public static void Main(string[] args) { Console.WriteLine("Started"); - Console.WriteLine($"PID = " + Process.GetCurrentProcess().Id); + // Process ID is insufficient because PID's may be reused. + Console.WriteLine($"Process identifier = {Process.GetCurrentProcess().Id}, {Process.GetCurrentProcess().StartTime:hh:mm:ss.FF}"); Thread.Sleep(Timeout.Infinite); } } |