我刚开始使用 C# 的 .NET Framework 4.5,正在使用 Windows 窗体应用程序。我已经进行了必要的导入,例如:
using System.Configuration;
实际上,ConfigurationManager类似乎不存在。我尝试使用ConfigurationSettings替代它,但Visual Studio告诉我它已经过时,应该使用ConfigurationManager!
以下是与问题相关的代码块:
Int32.Parse StartingMonth = int.parse(ConfigurationManager.AppSettings["StartingMonthColumn"]);
所以,你能帮我一下吗?