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 last project I have inherits some user-control created in ProjectA
.
我有一个包含基类(xaml +代码隐藏)的主项目(ProjectA)。另外,我还有一个项目(ProjectB)与ProjectA一起参考。在最后一个项目中,我继承了在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?
有没有最好的方法来解决这个问题?
2 个解决方案
#1
2
I know it is not really a solution to the problem. But I have found that Clean and Build makes the error go away...
我知道这不是问题的真正解决方案。但我发现Clean和Build会让错误消失......
#2
0
I encounter the same problem with VS 2013 sometimes, without any immediate cause e.g. after a reboot and rebuild from scratch. In such cases the solution build succeeds, it also runs but still the error list displays e.g. 5 URI errors. While sometimes clean and build suffies, other times you have to close VS, delete bin/obj folders of the project with the errors, reopen VS and then the errors have gone.
我有时遇到与VS 2013相同的问题,没有任何直接原因,例如重启后重建并从头开始重建。在这种情况下,解决方案构建成功,它也运行但仍然显示错误列表,例如5个URI错误。虽然有时干净和构建足够,有时你必须关闭VS,删除错误的项目的bin / obj文件夹,重新打开VS然后错误已经消失。
#1
2
I know it is not really a solution to the problem. But I have found that Clean and Build makes the error go away...
我知道这不是问题的真正解决方案。但我发现Clean和Build会让错误消失......
#2
0
I encounter the same problem with VS 2013 sometimes, without any immediate cause e.g. after a reboot and rebuild from scratch. In such cases the solution build succeeds, it also runs but still the error list displays e.g. 5 URI errors. While sometimes clean and build suffies, other times you have to close VS, delete bin/obj folders of the project with the errors, reopen VS and then the errors have gone.
我有时遇到与VS 2013相同的问题,没有任何直接原因,例如重启后重建并从头开始重建。在这种情况下,解决方案构建成功,它也运行但仍然显示错误列表,例如5个URI错误。虽然有时干净和构建足够,有时你必须关闭VS,删除错误的项目的bin / obj文件夹,重新打开VS然后错误已经消失。