且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

集中同一解决方案中多个项目的连接字符串

更新时间:2023-11-22 19:23:58

有几种方法可以实现:

  1. 此处所示,在machine.config中放入常用配置设置.
  2. 将通用配置设置放入中间文件中,并链接到每个项目的app.config中,如
  1. Put common configuration settings in machine.config as shown here
  2. Put common configuration settings in a central file and link to that in each projects's app.config as shown here
  3. Store the configuration settings in the registry

对我来说,我总是使用最后的解决方案:) 祝你好运!

For me, i always work with the last solution :) Good luck!