资源文件在解决方案之间作为外部文件共享
我有两个解决方案,一个名为服务器的解决方案和一个名为客户端的解决方案。服务器包含一个名为 Server.Properties.Resources 的资源文件。该文件将作为外部文件添加到客户端解决方案中。
当我在 Visual Studio 中调试时,一切运行良好。当我运行部署的版本时,出现错误
System.Resources.MissingManifestResourceException:
Could not find any resources appropriate for the specified culture or the neutral culture.
Make sure "Aexeo.DataLayer.Properties.Resources.resources" was correctly embedded or
linked into assembly "Core" at compile time, or that all the satellite assemblies required
are loadable and fully signed.
是否有办法解决此问题,保持外部文件链接的使用?
I have two solutions, a solution named Server and a solution named Client. The Server contains a resources file named Server.Properties.Resources. That file is added to the Client solution as an external file.
When I debug inside Visual Studio, everything runs great. When I run the deployed version, I get the error
System.Resources.MissingManifestResourceException:
Could not find any resources appropriate for the specified culture or the neutral culture.
Make sure "Aexeo.DataLayer.Properties.Resources.resources" was correctly embedded or
linked into assembly "Core" at compile time, or that all the satellite assemblies required
are loadable and fully signed.
Is there a way to resolve this, maintaining the usage of the external file link?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这正是您正在寻找的:
http://support.microsoft.com/kb/839861
该问题是在您手动创建附属程序集时引起的。附属程序集的命名方式应使其能够自动从应用程序中调用。要解决此问题,您可以使用程序集链接器 al.exe 将程序集正确链接到应用程序。
I think this is what exactly you are looking for :
http://support.microsoft.com/kb/839861
The problem is caused when you manually create satellite assemblies. Satellite assemblies should be named in such a way that it could automatically be called from the application. To solve the issue you can use Assembly linker al.exe to link the assembly to the application properly.