Exclude web.config from server when publishing website (not WAP) VS2005

独自空忆成欢 提交于 2019-12-11 10:38:54

问题


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.


回答1:


Quite simply. Go to properties of web.config, for 'Build Action' select 'None' and 'Copy To Output Directory' select 'Do Not copy'



来源:https://stackoverflow.com/questions/3389041/exclude-web-config-from-server-when-publishing-website-not-wap-vs2005

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!