S
Simon
Hi everyone,
I really need help with the following:
It's common in app development to create numerous projects under one
solution that as a whole combine to become your final application. For
example I have a solution that has four subprojects - 3 class libraries and
1 windows forms app.
Q - Some of these projects - both class library and win form application
require access to a config file. In one of the projects - the one that
supports data access I use the line below to access a custom config section:
ChaosDataConfiguration config =
(ChaosDataConfiguration)ConfigurationSettings.GetConfig("TheChaosLibraries/DataProviderSettings");
The problem I'm having is I don't know if this is going to work. Should the
App.config file be placed under the data projects directory, or is there
some way to create a single config file at the root of the solution and have
all projects access that?
Any help would be greatfully received.
Thanks all
I really need help with the following:
It's common in app development to create numerous projects under one
solution that as a whole combine to become your final application. For
example I have a solution that has four subprojects - 3 class libraries and
1 windows forms app.
Q - Some of these projects - both class library and win form application
require access to a config file. In one of the projects - the one that
supports data access I use the line below to access a custom config section:
ChaosDataConfiguration config =
(ChaosDataConfiguration)ConfigurationSettings.GetConfig("TheChaosLibraries/DataProviderSettings");
The problem I'm having is I don't know if this is going to work. Should the
App.config file be placed under the data projects directory, or is there
some way to create a single config file at the root of the solution and have
all projects access that?
Any help would be greatfully received.
Thanks all