How can I make a .NET class library read its own configuration file?

前端 未结 7 846
予麋鹿
予麋鹿 2020-12-13 15:10

I have a .NET class library that provides a set of helper functions that are used by several Web Services. This class library must store a single setting, specifically, a co

7条回答
  •  甜味超标
    2020-12-13 15:54

    The ConfigurationManager.OpenExeConfiguration didn't work for me.

    But, Properties.Settings.Default. worked well.

提交回复
热议问题