I have Blazor .net core hosted webassembly app . So basically 3 projects included
---.Client
---.Server
appsettings.json Startup.cs
---.Shared
I tried to access the appsettings using Configuration.GetSection, Configuration.Get, etc but the app is actually looking at the wrong file path. It looks for the appsettings.json file inside the .Client project.
I copied the appsettings.json in .Client project and it took the file. But I dont want to keep the appettings.json in .Client project. What is the solution for this?
Note: Publishing and running works just fine. Issue occurs when debugging only.