.Net app.config in library project

后端 未结 4 545
轻奢々
轻奢々 2020-12-03 23:56

I have a console application project and library project (dll) in one solution. The library project has app.config file where I store a connection string to database. The c

4条回答
  •  -上瘾入骨i
    2020-12-04 00:35

    Do you create a app.config file for your exe ( not just for your dll)? You have to, and make sure that you copy whatever setting you have in your dll config to your exe config.

    Or you can use "Add as Link" to link the app.config to your exe.

提交回复
热议问题