在Visual Studio中调试一些代码后,资源丢失 [英] Resources are missing after debugging some code in visual studio

查看:108
本文介绍了在Visual Studio中调试一些代码后,资源丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时候,我在调试代码时遇到此错误.

类型或名称空间名称"Resources"在名称空间"xxxxxxx"中不存在(您是否缺少程序集引用?)

虽然资源也存在于项目中.此问题背后的原因是什么,如何解决?

谢谢

Sometime, I come across this error while debugging code.

The type or namespace name ''Resources'' does not exist in the namespace ''xxxxxxx'' (are you missing an assembly reference?)

While Resources are also present in project. What are reason behind this issue and how can it be resolved ?

Thanks

推荐答案

如果您正在使用资源文件,请检查是否将访问级别设置为public.默认情况下,它应该是内部的.
If you are using resource files then check if you set the access level as public. By default it should be internal.


这篇关于在Visual Studio中调试一些代码后,资源丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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