0

I have 2 config files in my application. When getting values from Web.config, I am using the below in c# and I get the values. But I am not sure how I can get some of the values from app.cofig.

ConfigurationManager.AppSettings[xsdSchema]

Appreciate the help.

challengeAccepted
  • 7,106
  • 20
  • 74
  • 105

1 Answers1

1

App.config file is used in desktop/console applications. Web applications use web.config file. So you cannot use both in the same project.

However you can extract a web.config section into a separate file.

Community
  • 1
  • 1
Andrei Mihalciuc
  • 2,148
  • 16
  • 14