While writing a console application we realized that the the option to add app.config was missing in Visual Studio 2019
We tried couple of things as suggested over the internet but to no avail.
Eventually, install / modify the .NET desktop development workload fixed it for us.
Application configuration file available –
Hope it helps..