Easiest way to read a config file belonging to another application

前端 未结 3 1659
予麋鹿
予麋鹿 2021-01-13 08:49

Other than using raw XML, is there an easy way in .NET to open and read a config file belonging to another assembly...? I don\'t need to write to it, just grab a couple of

3条回答
  •  太阳男子
    2021-01-13 09:23

    Have you tried ConfigurationManager and OpenExeConfiguration(path)? (in System.Configuration.dll)

提交回复
热议问题