在多项目解决方案常见的配置文件?多项、配置文件、解决方案、常见

2023-09-04 05:51:56 作者:凉城.

我工作的一个中等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.