类型resource.image不存在 [英] Type resource.image does not exist

查看:68
本文介绍了类型resource.image不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在开发一个NET应用程序,我面临的问题是我有一些在背景上设置了图像的按钮.我试图更改某些按钮的图像,以将其替换为新按钮.突然,form.cs [Design]中出现很多错误,表明该资源不存在(即使对于那些我没有尝试更改其背景的按钮).所有这些图像都存在于资源文件夹中.我不知道是什么问题.请帮助我,因为我的整个任务都因它而卡住了,如果不解决这个问题,我将无法继续进行.如果我删除了错误代码行,那么如果我再次尝试将图像设置为背景,则按钮将保持空白,则不会在背景上设置任何图像.

错误描述是这样的(不完全是):找不到类型Resource.image,程序集不包含引用或解决方案未正确构建".请尽快帮助我.

Hi, I am working on a NET application, the problem which i am facing is that i have some buttons with images set at their background. I was trying to change the images of some of the buttons to replace them with new ones. Suddenly a lot of errors appeared in the form.cs [Design] showing that the resource does not exist, (even for those buttons whose background i did not try to change). All of those images are present in the resource folder. I can not figure out what is the problem. Kindly help me out because my whole task is stuck due to it and i can not proceed without solving this problem. If i delete the error line of code then if i again try to set an image to the background then the buttons remains blank, no image gets set at the background.

The error description is something like this (not exact): "Can not find type Resource.image, either the assembly does not contains the reference or the solution is not built properly". Kindly help me out as soon as possible.

推荐答案

Zil-e-Huma写道:
Zil-e-Huma wrote:

错误描述是 这样的(不完全) :找不到类型Resource.image,或者程序集找不到包含参考或解决方案构建不正确"

The error description is something like this (not exact): "Can not find type Resource.image, either the assembly does not contains the reference or the solution is not built properly"

为什么?给我们正确的错误消息,以便我们提供正确的解决方案.

根据错误消息的一半,我找到了以下链接
找不到类型<类型名称=">" ' [ ^ ]

编辑
-------------------

Why? give us the right error message so that we can give the right solution.

Based on half of error message I found the below link
Could not find type ''<type name="">''[^]

EDIT
-------------------

Zil-e-Huma写道:
Zil-e-Huma wrote:

是的,这是正确的错误消息:
找不到类型Resource.image,请确保引用了包含该类型的程序集.如果此类型是开发项目的一部分,请确保已成功构建该项目."

yes this is the right error message :
"Could not find type Resource.image, 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".


FIX:控件从Visual Studio .NET中的Windows窗体设计器中消失 [无法找到类型"错误,加载了表单在设计器中 [找不到类型 [


FIX: Controls disappear from the Windows Forms Designer in Visual Studio .NET[^]
"Could not find type" error loading a form in the Designer[^]
Could not find type[^]


这篇关于类型resource.image不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆