两个错误???
<UserControl x:Class="SilverlightMonster.MainPage"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Cursor="None"
Width="1366" Height="768" MouseMove="Ghost_MouseMove" xmlns:SilverlightMonster="clr-namespace:SilverlightMonster">
<Canvas x:Name="cnvMovementTest" Width="1366" Height="768" Background="Bisque">
<SilverlightMonster:Ghost Canvas.Left="10" Canvas.Top="10" x:Name="ghost"/>
错误一:Error 2 The type 'SilverlightMonster:Ghost' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. C:\Users\Administrator\Desktop\SL_VS\SilverlightMonster\SilverlightMonster\MainPage.xaml 7 10 SilverlightMonster
但是“Ghost.XAML文件”是存在的啊?
</Canvas>
</UserControl>
错误二:
Error 1 Unable to load the metadata for assembly 'SilverlightMonster'. This assembly may have been downloaded from the web. See http://go.microsoft.com/fwlink/?LinkId=179545. The following error was encountered during load: Could not load file or assembly 'SilverlightMonster' or one of its dependencies. 系统找不到指定的文件。 C:\Users\Administrator\Desktop\SL_VS\SilverlightMonster\SilverlightMonster\MainPage.xaml 1 1 SilverlightMonster
怎么会找不到文件?
--------------------编程问答-------------------- SilverlightMonster所在项目是否引用 --------------------编程问答--------------------
好像缺少引用,但是要引用那个呢? --------------------编程问答-------------------- --------------------编程问答-------------------- 缺少对SilverlightMonster所在的Assembly的引用。 --------------------编程问答-------------------- C:\Users\Administrator\Desktop\SL_VS\SilverlightMonster\SilverlightMonster\MainPage.xaml 有吗 --------------------编程问答--------------------
有啊。。。 --------------------编程问答--------------------
补充:.NET技术 , C#