I am trying to run a .NET Core 1.0.0 console application inside a docker container. When I run dotnet run command from inside the Demo folder on my machin
dotnet run
You can use:
Thread.Sleep(Timeout.Infinite);
See this answer:
Is Thread.Sleep(Timeout.Infinite); more efficient than while(true){}?