编辑编译的程序集的C#资源文件 [英] Editing a C# resource file of a compiled assembly

查看:92
本文介绍了编辑编译的程序集的C#资源文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我在哪里存储连接字符串等一类的库资源文件(我不能使用一个app.config,不要问为什么!?!)。
这是我的假设(可能是一个愚蠢的),我将能够修改遵守大会的.rex文件出方在运行时能够通过环境,而无需重新编译每次大会修改连接字符串,有人可以验证我的假设,如果可能的话告诉我该怎么办呢?



干杯


解决方案< 。/ DIV>

您可以拆卸组装,编辑资源和再次组装它



您可以找到一些信息的这里


I have a resource file where I am storing connection string etc for a class library (I cant use an App.config, don't ask why!?!). It was my assumption (might be a stupid one) that I would be able to modify the .rex file out side of the complied assembly at runtime to be able to change connection string through environments without recompiling the assembly each time, can someone verify my assumption and if possible tell me how to do it?

Cheers

解决方案

You can disassemble assembly, edit resources and assemble it again.

You can find some info here.

这篇关于编辑编译的程序集的C#资源文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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