Wondering whether this is possible to read at runtime a json / xml file containing loads of constants (independent of whether this is working in development / production) in a project which is not the main project in an ASP.NET Core solution?
I am not considering moving everything to the appsettings.json and I don't wanna convert everything in a giant piece of class.
Obvisouly at runtime if I am running that line:
var configurationContent = File.ReadAllText(ConfigurationFileName);
while the configuration file is located in the non-main project, the process is going to look for that file in the main project directory.
How can I fix that?