缺少对资源的集合参考 [英] missing assembly referenc on resources
问题描述
错误:
错误 16 类型或 命名空间名称' 资源'在名称空间'MySolutionName.Properties'中不存在(你是否缺少程序集引用?)..
我添加到资源并使用它们的所有图像上的
错误:
找不到类型'Resources.archive_48'。请确保引用包含此类型的程序集。如果此类型是开发项目的一部分,请确保已成功构建项目。
查看自动生成的C#文件,该文件已显示作为解决方案资源管理器中资源文件节点的子节点。打开它,看看那里有什么。使用此文件中声明的命名空间。使用此文件查看资源本身的声明方式并正确使用它们。
-SA
<在Resources.resx中的blockquote>,它显示为My解决方案的属性文件夹中的子节点,我删除了有错误的图像,一切正常。谢谢所有
oh help me please. I change the name of an picturebox event and accidently.visual stodio showed mean error and I just press ok and the alot of error on my designer accured.If I dont solve erros all data on my designer will be lost.help me please.
error:
Error 16 The type or namespace name 'Resources' does not exist in the namespace 'MySolutionName.Properties' (are you missing an assembly reference?) ..
error on all images I add to resources and used them:
Could not find type 'Resources.archive_48'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built.
Look at the auto-generated C# file, which is shown as the child node of your resource file node in Solution Explorer. Open it and see what's in there. Use the namespace declared in this file. Use this file to see how the resources themselves are declared and use them appropriately.
—SA
in Resources.resx which is shown as the child node in properties folder of My solution, I removed images with error, and everything was ok. thanks all
这篇关于缺少对资源的集合参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!