Reading static files in ASP.NET Blazor
问题 I have a client side Blazor Application. I want to have an appsetting.json file for my client-side configuration like we have an environment.ts in Angular. For that, I am keeping a ConfigFiles folder under wwwroot and a JSON file inside of it. I am trying to read this file as below. First get the path: public static class ConfigFiles { public static string GetPath(string fileName) { return Path.Combine("ConfigFiles", fileName); } } Than read it: public string GetBaseUrl() { string T = string