I am creating a WPF project using .net Core 3.00
, and I am having trouble adding the item appsettings.json
file to my project which is to be used
add an App.config file to the root of your project and add this code:
appSettings is with S not s
Now you can read these anywhere of your dotnet core wpf app:
string DefaultLanguage = ConfigurationManager.AppSettings.Get("DefaultLanguage");
string ConnectionString = ConfigurationManager.ConnectionStrings["AppConnectionString"].ConnectionString;