本文介绍了App.config中只对我的开发机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以创建的app.config或web.config文件仅适用于我的开发机器,而不是使用被签入到源控件的默认配置文件?
Can I create app.config or web.config file that applies only to my developer machine, as opposed to using the default configuration files that are checked into source control?
推荐答案
您可以有一个app.config为每个环境,如果这是你在找什么。尝试这个:<一href="http://www.hanselman.com/blog/ManagingMultipleConfigurationFileEnvironmentsWith$p$pBuildEvents.aspx" rel="nofollow">http://www.hanselman.com/blog/ManagingMultipleConfigurationFileEnvironmentsWith$p$pBuildEvents.aspx
You can have an app.config for each environment, if is this what you are looking for. Try this:http://www.hanselman.com/blog/ManagingMultipleConfigurationFileEnvironmentsWithPreBuildEvents.aspx
这篇关于App.config中只对我的开发机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!