本文介绍了解决 URI 错误的最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含基类 (xaml + 代码隐藏) 的主项目 (ProjectA
).
另外,我还有另一个项目 (ProjectB
) 参考 ProjectA
.在那最后我的项目继承了在 ProjectA
中创建的一些用户控件.
I have a main project (ProjectA
) that contain a base class (xaml + code-behind).
Also, I have another project (ProjectB
) in reference with ProjectA
. In that lastproject I have inherits some user-control created in ProjectA
.
启动主应用程序时,我收到以下错误:
When launching the main application, I receive the follow error:
The component 'XXX' does not have a resource identified by the URI
'/My.Assembly;component/.../simplegridview.xaml'
是否有解决该问题的最佳方法?
Is there a best way to resolve that problem?
推荐答案
我知道这并不是问题的真正解决方案.但我发现 Clean and Build 使错误消失......
I know it is not really a solution to the problem. But I have found that Clean and Build makes the error go away...
这篇关于解决 URI 错误的最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!