hi i have a method to get appsetting.json value in .netcore 3.1 but i cudnt use that method in 5.0
string value= GetConfig("configkey");
GetConfig(configkey);{
var configValue = Configuration[configKey];
appsetting:
//}
{
"Logging": {
"IncludeScopes": false,
"LogLevel": {
"Default": "Warning",
"System": "Information",
"Microsoft": "Information"
}
},
configkey:"configkey"
}
}
this is not working in 5.0 but works in 3.1 please help me
Rijwan AnsariRank #82 · 24.2K reputationPosted Jun 14, 2021, 1:19 PM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Jun 14, 2021, 2:08 PM EDT
Sujeet RamanRank #1,329 · 1.3K reputationPosted Jun 14, 2021, 3:41 PM EDT
Sujeet RamanRank #1,329 · 1.3K reputationPosted Jun 15, 2021, 2:14 AM EDT
Ganesan CRank #369 · 6.8K reputationPosted Aug 30, 2021, 5:26 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts