I have a simple console tool which is written in c#. As soon as the user enters some data by typing and hitting enter key. My tool does it work and prints out some useful information for the user. Since user already hit the enter key, the console app windows is close even if I put Console.WriteLine(); So the user can't read the output information from the console app.
I added Console.WriteLine(); two times to keep the windows open, but it closes the app immediately after the end of the application. Currently, the only way is to run the console app from command line. When the app finishes from the command line. It keeps the console open and then the user can read the application output.
But I want it so that users can open the app by double click from file explorer. It will do it's work and keep the console open for the user. So that the user can read the output. Then he can close by close button.
p.s: Note that I don't want any kind of background running service. For me only important matter to allow the user to read the last output message from the application.