Im running .NET Core 2.2 and just want to create a simple Console Application that reads one value and prints it out. Yes i know there is millions of examples of this but my problem is that none of them works for some reason. When i press Enter the application stops.
Here is the simple code that just writes the first line but then do nothing:
    static void Main(string[] args)
    {
        Console.WriteLine("I want to write a value here");
        var theValue = Console.ReadLine();
        Console.WriteLine(theValue);
    }
Is there any configuration i have to do in Visual Studio 2017 to make the Console read my value i write? Or anything else that makes the Console close and program to end when i press enter?
 
     
    