XBAP错误
<Page x:Class="SilverlightMonsterXBAP.Page1"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Page1"
Cursor="None">
<Canvas
Width="1366" Height="768" MouseMove="Ghost_MouseMove" xmlns:SilverlightMonsterXBAP="clr-namespace:SilverlightMonsterXBAP"
错误信息:
Error 1 Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'SilverlightMonsterXBAP' that is not included in the assembly. C:\Users\Administrator\Desktop\SL_VS\SilverlightMonsterXBAP\SilverlightMonsterXBAP\Page1.xaml 7 93 SilverlightMonsterXBAP
问题一:好像是缺少个引用,请问要添加那个引用,怎么添加?
>
<Canvas x:Name="cnvMovementTest" Width="1366" Height="768" Background="Bisque">
<SilverlightMonsterXBAP:Ghost Canvas.Left="10" Canvas.Top="10" x:Name="ghost"/>
问题二:这个好像也是缺少个引用。但是怎么添加,添加那个,引用不都是添加到cs文件中的吗?不会是添加在XAML中吧,也没找着啊? </Canvas>
</Canvas>
</Page> --------------------编程问答-------------------- 是用浏览器直接双击.xmal时显示的错误,还是在Visual Studio里提示这样的错误?
你先在Visual Studio里打开相关的项目文件看看是不是还提示错误。 --------------------编程问答--------------------
是在VS2010中提示这样的错误的。。。 --------------------编程问答--------------------
???? --------------------编程问答--------------------
补充:.NET技术 , C#