在Visual Studio中调试一些代码后,资源丢失

在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.