有没有办法分享两个项目之间的app.config?没有办法、两个、项目、config

由网友(本性难改)分享简介:我在一个解决方案的两个项目,我需要在它们之间共享一个app.config文件。大多它们使用相同的参数从配置I have a two projects under one solution, and I need to share a app.config file between them .mostly the...

我在一个解决方案的两个项目,我需要在它们之间共享一个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'.

阅读全文

相关推荐

最新文章