This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
Shared config across multiple projects within same solution #223
Closed
Description
Using beta-4
I can add a config file to my project like so:
var configuration = new Configuration()
.AddJsonFile("config.json");
If I have multiple projects within a solution that share the same config settings, I have to create a config.json
for each project with the same settings in it.
What if I want to share settings in a single "global" config file across multiple projects within the same solution?
My solution directory structure looks like this:
/my_solution
/prj1
prj1.xproj
config.json
/prj2
prj2.xproj
config.json
my_solution.sln
Could I move config.json
out to the solution level and still add it somehow?
/my_solution
/prj1
prj1.xproj
/prj2
prj2.xproj
my_solution.sln
config.json
or maybe even
/my_solution
/prj1
prj1.xproj
config.json
/prj2
prj2.xproj
config.json
my_solution.sln
global_config.json
It looks to me like paths are always resolved starting at the application base.
How would I do this? Does this make sense to do?
Metadata
Metadata
Assignees
Labels
No labels