Rick 0

Rick 0

  • NA
  • 1
  • 0

How can I share config accross projects in 2.0 ???

Oct 24 2005 3:32 PM
I'm trying to use the 2.0 way to handle the app.config and user.config as demonstrated in this example: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/vbmysettings.asp and everything works fine when I'm in a single project. For example I can pull out the fooBar config var like... TestingNameSpace.Properties.Settings.Default.fooBar; The prolem I'm running into is if I have more than one project for my solution and I want to use the config file from the other project. For example if I create another project and add a reference to the project that has TestingNameSpace and also set it up as project dependency, I still can't around the error of "Settings is innaccessible due to its protection level." Compilation fails after TestingNameSpace.Properties.{ here } //nothing available I must be missing something simple since there has to be a way to have access to an app.config file and a user.config file that was set up in another project. Any help much appreciated.