找不到任何适合指定文化或中立文化的资源。 - 资源文件共享问题
我有一个普通的班级图书馆。最近,我本地化了这个类库。
我还有另一个 Silverlight 类库,它基本上是一个链接文件项目,
<Link>Reports\Reports.cs</Link>
其中,我包含了与对其他文件所做的相同的 resx 文件作为链接引用。运行时,抛出以下异常。
Could not find any resources appropriate for the specified culture or the neutral culture.
Make sure "BCL.Resources.BCLNamespace.resources" was correctly embedded
or linked into assembly "SilverlightBCL" at compile time, or that all the
satellite assemblies required are loadable and fully signed.
I have a normal class library. Recently, I localized this class library.
I also have another Silverlight class library, Which is basically a linked file project
<Link>Reports\Reports.cs</Link>
In that, I have included the same resx file as link reference as I done for other files. While running, it throws the following exception.
Could not find any resources appropriate for the specified culture or the neutral culture.
Make sure "BCL.Resources.BCLNamespace.resources" was correctly embedded
or linked into assembly "SilverlightBCL" at compile time, or that all the
satellite assemblies required are loadable and fully signed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将 Assembly2 (SilverlightBCL) 中的默认命名空间保持与 Assembly1 (BCL) 相同可以修复此问题。
谢谢大家:)
Keeping the Default namespace in Assembly2 (SilverlightBCL) as same as Assembly1 (BCL) fixes this issue.
Thanks all :)
在 [Filename].Designer.cs 中,它可能是以下之一:
命名空间
ResourceManager
In the [Filename].Designer.cs , it could be one of the following:
the Namespace
ResourceManager