天天看點

在類庫中無法使用ConfigurationManager

需要先引用DLL檔案:

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

然後才可以使用

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

繼續閱讀