在.NET中,如何将xml与编译的资源文件分开?

发布于 2024-08-28 03:26:43 字数 169 浏览 4 评论 0原文

我们有一位客户想要修改我们存储在 .resx 文件中的应用程序用户消息。我认为这是无法完成的,因为 .resx 后面的 xml 文件嵌入在已编译的 dll 中。我说得对吗?或者,有没有办法将 xml 保留在已编译的 dll 之外?我意识到这可以通过其他方式轻松完成,但我喜欢 resx 文件的易用性——类/属性是为您创建的。

We have a customer that would like to modify application user messages that we store in .resx files. I'm thinking this can't be done since the xml file behind the .resx is embedded in a compiled dll. Am I correct? Or, is there a way keep the xml outside of the compiled dll? I realize this can easily be done by other means but I like the ease of the resx file--the classes/properties are created for you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

只是我以为 2024-09-04 03:26:43

你是对的。当然,一切皆有可能,但它不会那么方便或易于维护。听起来卫星组件不会飞到这里。应用程序设置是最简单的。避免此类请求的一个好方法是报出准确的价格,其中包括未来 N 年维护此价格的麻烦。

You are correct. Anything is possible of course, but it won't be nearly as convenient or easy to maintain. It doesn't sound like a satellite assembly would fly here. An application setting is about the easiest. A good way to keep requests like these at bay is to quote an accurate price that includes the hassle of maintaining this for the next N years.

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