I have this solution structure:
AppOne.Account
AppOne.Admin
AppOne.System
AppOne.Data
AppOne.ClassLibrary
AppOne.Account
, AppOne.Admin
and AppOne.System
are ASP.NET
Core Application Projects. The rest are libraries.
Currently I have to manually copy and paste the same web.config file to each of them when I deploy and even in development, I have to copy and paste the launchSettings.json
file as it contains their environment variables that I need.
Is it possible to store the web.config
or launchSettings.json
file in a folder and then reference it in my Startup.cs
.
I am thinking of storing it in a Solution folder and then reading the in. However, I am unsure if that is possible and I am also unsure of where to read it from.