C# 属性。设置在VS 2013 CE中不起作用

C# 属性。设置在VS 2013 CE中不起作用,c#,.net,visual-studio,C#,.net,Visual Studio,我使用Microsoft Visual Studio Community 2013版本12.0.40629.00更新5 Microsoft.NET Framework版本4.7.02558 我从头创建了一个Windows应用程序项目,并添加了一个用户设置: 然后我尝试在程序中使用它。Main: static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingD

我使用Microsoft Visual Studio Community 2013版本12.0.40629.00更新5 Microsoft.NET Framework版本4.7.02558

我从头创建了一个Windows应用程序项目,并添加了一个用户设置:

然后我尝试在程序中使用它。Main:

static void Main() {
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);
    //Application.Run(new Form1());
    string path = Properties.Settings.Default.Path;
}
编译器抱怨:

Error   1   'WindowsFormsApplication1.Properties.Settings' does not contain a definition for 'Path' 
and no extension method 'Path' accepting a first argument of type 'WindowsFormsApplication1.Properties.Settings' 
could be found (are you missing a using directive or an assembly reference?)    
I:\Dev\Visual Studio 2013\ThrowAway\WindowsFormsApplication1\WindowsFormsApplication1\Program.cs    17  55  WindowsFormsApplication1
我检查了一些旧项目,发现了同样的问题。
如何解决此问题?

设置表的第一列定义了属性的名称,因此根据当前设置,代码应为

string path = Properties.Settings.Default.Settings;

这可能不是你真正想要的。我猜您想调用设置路径,所以应该将路径放入第一列,名为Name。

您完全正确。我怎么会这么傻。