R
rgliane
[Didn't get an official response from MS...so am reposting after setting up
alias]
I have a method in a common class library that reads the application config
file. If the library is used by a Windows app, it should use
ConfigurationManager to read the app.config file. If the library is used by
a Web app, it should use WebConfigurationManager to read the web.config file.
Is there a programmatic way for the class lib to determine what kind of app
is running? Or is there another approach to handle this kind of thing?
alias]
I have a method in a common class library that reads the application config
file. If the library is used by a Windows app, it should use
ConfigurationManager to read the app.config file. If the library is used by
a Web app, it should use WebConfigurationManager to read the web.config file.
Is there a programmatic way for the class lib to determine what kind of app
is running? Or is there another approach to handle this kind of thing?