Can someone provide a quick App.config/Web.config tutorial?

后端 未结 2 830
耶瑟儿~
耶瑟儿~ 2020-12-15 12:17

I\'ve used these two configuration files many times before, but I\'ve never taken the time to fully understand how they really work. As most people do, I understand the bas

2条回答
  •  旧时难觅i
    2020-12-15 12:25

    The app/ web.config that is used is the one that starts the process. Easier if I give an example:

    • Assume all projects in a solution have an app or web.config.
    • A test in project A calls code in project B that calls a web service in project C which calls code in project D.

    In this case code in project A and B will use the app.config in project A. Code in project C and D will use the web.config in project C.

提交回复
热议问题