C# DLL config file

后端 未结 17 2365
梦毁少年i
梦毁少年i 2020-11-22 05:05

Im trying to add an app.config file to my DLL, but all attempts have failed.

According to MusicGenesis in \'Putting configuration information in a DLL\' this should

17条回答
  •  别跟我提以往
    2020-11-22 05:19

    ConfigurationManager.AppSettings returns the settings defined for the application, not for the specific DLL, you can access them but it's the application settings that will be returned.

    If you're using you dll from another application then the ConnectionString shall be in the app.settings of the application.

提交回复
热议问题