且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在类库中无法使用ConfigurationManager

更新时间:2022-08-17 10:14:32

需要先引用DLL文件:

C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.configuration.dll

然后才可以使用

System.Configuration.ConfigurationManager.AppSettings["SiteUrl"]