VB.NET 多语言资源文件 - 在开发中工作正常 - 在发布中丢失
我的点击一次应用程序有英语和西班牙语内容。在开发过程中,它与我拥有的两个资源文件一起运行良好 - 名为 multilingual.en-US.resx 和相应的 multilingual.es-MX.resx 。当我发布它时,它会丢失这些资源以供参考。任何人都知道为什么会这样做?这些文件位于应用程序的根目录中。
My click-once app has english and spanish content. In development, it runs fine with the two resource files I have - named multilingual.en-US.resx & multilingual.es-MX.resx accordingly. When I publish it looses these resources for referencing. Anyone have any idea why it would do that? The files reside in the root directory for the app.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以检查以下几件事:
确保这两个文件的构建操作设置为“嵌入资源”。 (在解决方案资源管理器中单击它们并检查属性窗口。)
在应用程序的发布设置中,单击“应用程序文件”按钮并确保资源 dll 设置为“包含”。如果不是,ClickOnce 可能不会选取它们。
A couple of things you can check:
Make sure the build action is set to "Embedded Resource" for those two files. (Click on them in solution explorer and check the properties window.)
In the Publish settings for your application, click the "Application Files" button and make sure the resource dlls are set to "Include". If they're not, ClickOnce might not pick them up.