Using app.config with a class library

后端 未结 9 1352
忘掉有多难
忘掉有多难 2020-11-27 06:47

Frequently I need to create a .Net class library that requires an app.config for things such as database connection strings. However, these settings must be in the calling a

9条回答
  •  不知归路
    2020-11-27 06:48

    Create your class library in a different solution. If you keep them in the same solution, the app.config at the highest hierarchy will get read instead.

提交回复
热议问题