有没有办法分享两个项目之间的app.config? [英] Is there a way to share a app.config between two projects?

查看:119
本文介绍了有没有办法分享两个项目之间的app.config?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个解决方案的两个项目,我需要在它们之间共享一个app.config文件。 大多它们使用相同的参数从配置

I have a two projects under one solution, and I need to share a app.config file between them . mostly they use the same parameters from the configuration.

有没有一些方法来共享配置文件? 我使用VS2010。

Is there some way to share the config file ? I am using VS2010.

推荐答案

是的,刚刚从其他项目为纽带添加文件:右键单击该项目>>选择添加现有文件>>导航app.config文件>>点击下拉列表旁边的添加按钮,然后选择添加为链接。

Yes, just add the file from the other project 'as a link': Right click on the project >> select 'Add existing file' >> navigate to the app.config file >> click the dropdown next to the 'add' button and select 'add as a link'.

这篇关于有没有办法分享两个项目之间的app.config?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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