<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
怎么会找不到文件?
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
怎么会找不到文件?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货