i have started a new RESTful project using .NET Core Framework.
I divided my solution in two parts: Framework (set of .NET standard libraries) and Web (RESTful project).
With Framework folder i provide some of library for furthers web project and into one of these i'd like to provide a Configuration class with the generic method T GetAppSetting<T>(string Key)
.
My question is: how can i get the access to the AppSettings.json file in .NET Standard?
I have found so many example about reading this file, but all these examples read the file into the web project and no-one do this into an extarnal library. I need it to have reusable code for Others project.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…