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

Similar Threads

Global code in vs2008 3
vs2005 to vs2008 problems 3
Separate .config file 3
LINQ in VS2008 2
VS2008 / IIS - cannot debug 1
vs2008 question 5
Website deployment vs2008 5
vs2008 hangs when building solution 1

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top