在多项目解决方案常见的配置文件? [英] Common config file in a multiple-project solution?

查看:149
本文介绍了在多项目解决方案常见的配置文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个中等n层解决方案,包括2个网络项目和一个WinForms项目为presentations,再加上型号和服务层。

I'm working on a medium n-tier solution consisting of 2 web projects and a Winforms project as presentations, plus a Model and Service tier.

所有这些项目共享相同的设置(这是现在硬codeD为简单起见)。我希望把这些设置的配置文件(而不是数据库),可以对所有项目和层之间被重用,但我不太清楚如何。任何帮助将是非常美联社preciated,谢谢你。

All these projects share the same settings (which are now hard-coded for simplicity). I'm looking to put these settings in a config file (not in the database) that can be reused among all the projects and tiers, but I'm not quite sure how. Any help would be much appreciated, thank you.

推荐答案

您可以保留在项目实际的一个配置文件,并在休息,的配置文件添加为链接

You can keep the config file in one of the projects physically, and in the rest, add the config file as a link.

这篇关于在多项目解决方案常见的配置文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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