Application Config file not available for Class library in vs2008?


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.
 
Ad

Advertisements

Ad

Advertisements

S

Stimp

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top