12.3

1.能够正确运行,但是Window.Resources中的local:会出现蓝色波浪线,且有

错误 XDG0062 Could not load file or assembly 'test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. 系统找不到指定的文件。 test E:\Program\test\MainWindow.xaml 11

参考https://blog.csdn.net/weixin_42930928/article/details/109635783解决

-蓝色波浪线,为编译错误,但又可以正常运行,可以尝试关闭VS,删除项目中.vs隐藏文件夹,重启项目即可

神奇的bug

 

2.InitializeComponent();无法加载图片资源

使用的图片的属性没有改成资源

 

3.注意检查变量名称....

 

posted on 2021-12-15 14:39  rin_riceroll  阅读(38)  评论(0编辑  收藏  举报