如何在我的Windows窗體應用程序中訪問ConfigurationManager.AppSettings
?無法訪問Windows窗體應用程序中的ConfigurationManager.AppSettings
錯誤消息爲:名稱'ConfigurationManager'在當前上下文中不存在。
如何在我的Windows窗體應用程序中訪問ConfigurationManager.AppSettings
?無法訪問Windows窗體應用程序中的ConfigurationManager.AppSettings
錯誤消息爲:名稱'ConfigurationManager'在當前上下文中不存在。
添加對System.Configuration.dll的引用。
Duh!..不習慣winforms開發 - 在做web應用程序時,默認情況下包含所有東西。或者如此接縫。謝了哥們 :) – roosteronacid 2009-11-25 13:24:15
我已經有過這種經歷,我必須去之前添加一個對System.Configuration的引用,以便能夠使用這種功能。
右鍵單擊在Solution Explorer中的項目,選擇Add Reference,然後選擇.NET選項卡(它應該被默認選中),然後選擇System.Configuration
你什麼錯誤? – SLaks 2009-11-25 13:18:26