Application Config file not available for Class library in vs2008?

  • Thread starter Thread starter Stimp
  • Start date Start date
S

Stimp

Hi all,

I've created a web application (not website) in VS2008 and have added a
class library project to the same solution.

I want to add an app.config to the class library but "Application
Configuration File" doesn't appear to be an option (as it was in VS2005)

Any ideas what could be going wrong here?

Cheers.
 
Class libraries do not automatically load an "app.config" file as do
executable (exe) processes. You can have your class library acess the
elements in the web.config as long as you have set a reference to the
System.Configuration namespace in your library assembly.

this is actually for the sake of setting up SubSonic DAL generator in
the class library, I believe it requires a local app.config
(as shown in: http://www.wekeroad.com/ss_setup2.html)

I ended up just manually adding the app.config as a text file and it
seems to have worked

Cheers.
 
Back
Top