作者lionpowder (暄)
看板C_Sharp
标题[问题] 出现错误 找不到型别 ' Settings'
时间Mon Aug 9 15:56:54 2010
<TextBox Grid.Row="0" Grid.Column="1" x:Name="uiTbxApplicationKey"
TabIndex="0" Text="{Binding Path=ApplicationKey, Mode=TwoWay,
Source={x:Static p:Settings.Default}}"/>
在建置到这一行程式码的时候会出现
错误 1 找不到型别 ' Settings'。请注意,型别名称会区分大小写。
请问出现这样的错误是我在Properties中误删或是误改到什麽吗?
如果还需要什麽资讯请告知... 卡在这一个问题卡好久了 ><
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.34.25.242
1F:推 F23ko:顾名思义,编译器找不到Settings这个class 08/09 16:00
这是在 Properties 底下 Settings.Designer.cs里的档案
namespace Facebook.Properties {
...
private static Settings defaultInstance =
((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new
Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
...
这是在Properties中Settings.cs里的程式码
namespace Facebook.Properties {
public sealed partial class Settings {
public Settings() {
...
}
...
}
}
里面已经有Settings了呀....
※ 编辑: lionpowder 来自: 114.34.25.242 (08/09 18:41)
2F:推 F23ko:投降....刚刚试了一下,也不知到哪里出问题..... 08/09 19:28
3F:→ lionpowder:谢谢你了~~ 08/09 23:40
4F:→ pico2k:有把Facebook.Properities加入专案的引用吗?... 08/10 22:41