我可以修改嵌入的资源在.NET应用程序的内容(文本/ xml文件) [英] Can I modify the content of an embedded resource (text/xml file) in a .NET application

查看:126
本文介绍了我可以修改嵌入的资源在.NET应用程序的内容(文本/ xml文件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

标题是pretty的许多问题: - )

The title is pretty much the question :-)

我在我的.net应用程序中嵌入一个XML文件和TXT文件资源。 我还在调试其他的事情,所以不能运行和测试这一点。

I've embedded an xml file and a txt file as resources in my .NET app. Am still debugging other things, so cannot run and test this.

所以只是问,我会能够修改这些文件在运行时,在部署后?

So just asking, would I be able to modify these files at runtime, after deployment?

推荐答案

都能跟得上。嵌入资源是在装配一组字节。

Nope. An embedded resource is a set of bytes in the assembly.

这就像试图修改code。在您的程序集,编译后。

Its like trying to modify the code in your assembly, after compiling.

这将是双重的不好,如果你的程序集已经签署。

This would be doubly bad if your assembly has been signed.

如果你想交换资源和缩小,你可以将你的资源到一个单独的(的卫星)组装,并交换了大会部署时间。

If you're trying to swap resources in and out, you can move your resources into a separate (satellite) assembly, and swap that assembly at deployment time.

什么是你想达到什么目的?

What are you trying to achieve?

这篇关于我可以修改嵌入的资源在.NET应用程序的内容(文本/ xml文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆