VB.NET 多语言资源文件 - 在开发中工作正常 - 在发布中丢失

发布于 2024-10-12 18:46:02 字数 163 浏览 9 评论 0原文

我的点击一次应用程序有英语和西班牙语内容。在开发过程中,它与我拥有的两个资源文件一起运行良好 - 名为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

煮茶煮酒煮时光 2024-10-19 18:46:02

您可以检查以下几件事:

  1. 确保这两个文件的构建操作设置为“嵌入资源”。 (在解决方案资源管理器中单击它们并检查属性窗口。)

  2. 在应用程序的发布设置中,单击“应用程序文件”按钮并确保资源 dll 设置为“包含”。如果不是,ClickOnce 可能不会选取它们。

A couple of things you can check:

  1. 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.)

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文