如何从单元测试中加载嵌入在WPF可执行文件中的资源?

编程入门 行业动态 更新时间:2024-10-24 04:41:59
本文介绍了如何从单元测试中加载嵌入在WPF可执行文件中的资源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否可以从可执行文件中读取字符串资源?如果是这样,怎么做?

Is it possible to read string resources from an executable? If so, how?

我需要编写一个单元测试,将WPF应用程序中的所有字符串资源与黄金标准进行比较,然后将其集成到发布构建过程中。

I need to write a unit test that compares all of the string resources in a WPF application against a gold standard and then integrate that into the release build process.

Richard Lewis Haggard

Richard Lewis Haggard

推荐答案

Richard.Haggard,

Hi Richard.Haggard,

>> 是否可以从可执行文件中读取字符串资源?如果是这样,怎么做?

我压缩我的.exe文件并且找不到任何资源,它只包含版本和列表,如何在.exe文件中添加资源?

我从互联网上搜索,我找不到任何从.exe文件加载资源的方法。

顺便说一句,你发布了一个帖子:

By the way, you have posted one thread :

social.msdn.microsoft/Forums/vstudio/en-US/20f8da4e-f49f-4603-9ead-ce39bf4c6728/what -is-wrong-this-objectdataprovider-declaration?forum = wpf#20f8da4e-f49f-4603-9ead-ce39bf4c6728

请关闭你的如果您已解决问题,请阅读。如果没有,请在该主题中提供您的问题。

Please close your thread if you have resolved your issue. If not, please provide your issue in that thread.

最好的问候,

Cherry

更多推荐

如何从单元测试中加载嵌入在WPF可执行文件中的资源?

本文发布于:2023-10-31 04:10:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1544960.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:可执行文件   单元   加载   资源   测试中

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!