Try installing a NuGet package: "System.Configuration.ConfigurationManager".
By the way, I think that .NET 5 is "Core" too, and you can re-create a more modern project using .NET 6.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello
My solution in Visual Studio 2022 comprises a class library and a console application. I would like to use
ConfigurationManager.AppSettings from the System.Configuration namespace, however it is not available.
This is targetting ,net 5 which if I uderstand correctly is not a .net core app.
Maybe I need to recreate as a core app?
Is targeting the app.config for settings and connection strings not the best way of developing in VS2022?
Thanks
Try installing a NuGet package: "System.Configuration.ConfigurationManager".
By the way, I think that .NET 5 is "Core" too, and you can re-create a more modern project using .NET 6.