发布网站时,排除服务器的web.config(不是WAP)VS2005 [英] Exclude web.config from server when publishing website (not WAP) VS2005
本文介绍了发布网站时,排除服务器的web.config(不是WAP)VS2005的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何在Visual Studio 2005发布的网站(而不是Web应用程序项目)时,排除的Web.config从服务器
我可以看到的信息如何添加设置到Web.config,但在这种情况下的Web.config是服务器上的罚款;所以我不希望引入可能有故障的web.config中真实环境的问题。
How do I exclude Web.config from server when publishing website (not web application project) in Visual Studio 2005 I can see information how to add setting to the Web.Config but in this instance the Web.config is fine on the servers; so I do not want the problem of introducing possible faulty Web.config to a live environment.
推荐答案
很简单。去web.config文件的属性的生成操作中选择无和复制到输出目录中选择不要复制
Quite simply. Go to properties of web.config, for 'Build Action' select 'None' and 'Copy To Output Directory' select 'Do Not copy'
这篇关于发布网站时,排除服务器的web.config(不是WAP)VS2005的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文