多个环境web.config文件 [英] multiple environment web.config files

查看:110
本文介绍了多个环境web.config文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我的项目中有2套web.config文件.一个用于测试环境,另一个用于实时环境.我在Visual Studio中创建了2个解决方案配置,一个称为"LiveRelease",另一个称为"TestDebug".选择配置并运行应用程序时,如何设置它以从正确的文件夹中获取正确的web.config?

提前谢谢您.

让我知道问题是否还不清楚并且需要修改.

Hello,

I have 2 sets of web.config files in my project. One is for the test environment and the other for the Live environment. I have created 2 Solution configurations in Visual Studio, one called "LiveRelease" and the other "TestDebug". How can I set it up to get the right web.config from the right folder when I choose the configuration and run the appplication?

Thank you in advance.

Let me know if the question is not clear and needs modification.

推荐答案

我找到了解决方法:

http: //blogs.msdn.com/b/vsto/archive/2010/03/09/tricks-with-app-config-and-clickonce-deployment-saurabh-bhatia.aspx [
I found the solution:

http://blogs.msdn.com/b/vsto/archive/2010/03/09/tricks-with-app-config-and-clickonce-deployment-saurabh-bhatia.aspx[^]


这篇关于多个环境web.config文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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