作者:手机用户2502881927 | 来源:互联网 | 2023-05-19 04:55
WithVS2010smandatethatweb.configbeincludedintheproject,howdowealloweveryonetokeept
With VS2010's mandate that web.config be included in the project, how do we allow everyone to keep their own custom config file without getting into source control problems?
在VS2010的授权下。在项目中包含配置,我们如何让每个人都保留自己的自定义配置文件而不涉及源代码控制问题?
Previously, we would simply leave web.config out of our project, allowing everyone to keep their own local version of web.config on their machine. We moved to VS2010, and it is now forcing me to add web.config to my project in order to run debug mode. Because our project is linked to TFS, it automatically adds web.config to source control and tries to maintain it that way.
以前,我们只需要离开web。配置出我们的项目,允许每个人保留他们自己的本地版本的web。他们的机器上配置。我们搬到VS2010,现在迫使我添加网络。配置到我的项目以运行调试模式。因为我们的项目链接到TFS,它会自动添加web。配置到源代码控制,并试图以这种方式维护它。
Is there a way to run in debug mode without including web.config in your project? Or is there a better way to manage config files?
有没有一种方法可以在调试模式下运行而不包括web。配置在您的项目?还是有更好的方式来管理配置文件?
5 个解决方案