.NET 6.0 - get appsettings.json values from class library. I have a .NET 6.0 web api project and another is class library.
I want to read some settings into class library.
We have appsettings.json inside a web api project. How can I read those values inside a class library?
Could you please provide me proper code snippets
I am new to .net core 6 and also dependency injections and all