最简单的阅读属于另一个应用程序的配置文件的方式 [英] Easiest way to read a config file belonging to another application

查看:167
本文介绍了最简单的阅读属于另一个应用程序的配置文件的方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除了使用原始XML,有没有在.NET中一个简单的方法来打开和阅读属于其他程序集的配置文件...?我不需要写,随便抓几个值从它。

Other than using raw XML, is there an easy way in .NET to open and read a config file belonging to another assembly...? I don't need to write to it, just grab a couple of values from it.

推荐答案

下面是 MSDN上OpenExeConfiguration

Here's MSDN on OpenExeConfiguration.

编辑:链接到如何对上eggheadcafe.com消失了。貌似EggheadCafe搬到NullSkull但下跌的文章ID的。

link to a how-to on eggheadcafe.com disappeared. Looks like EggheadCafe moved to NullSkull but dropped the article ID's.

这篇关于最简单的阅读属于另一个应用程序的配置文件的方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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