配置文件作为嵌入的资源配置文件、资源

2023-09-03 00:12:19 作者:学渣又名抄霸

有没有人在那里都使用嵌入式配置文件中或者VB.NET或C#的例子吗?我明白如何嵌入配置文件,但什么是后来进入的最佳方法是什么?我可以把它当作一个配置文件,像我可以跟外部配置文件?

Does anyone out there have an example of using an embedded Configuration File in either VB.NET or C#? I understand how to embed the configuration file, but what is the best method to access it afterward? Can I treat it as a configuration file, like I can with the external configuration files?

任何帮助是极大的AP preciated。

Any help is greatly appreciated.

推荐答案

我相信这不是主意,把配置文件是嵌入的资源。嵌入的资源得到装入该dll,你不能无需重新编译后更改配置(这是第一个地方一个配置文件的想法)。

i believe it's not the idea to put config file to be an embedded resource. embedded resources get packed into the dll and you can't change your configuration afterwards without recompilation (which is the idea of a config file in a first place).

 
精彩推荐
图片推荐