发布网站(非 WAP)VS2005 时从服务器中排除 web.config

发布于 2024-09-12 07:24:35 字数 164 浏览 2 评论 0原文

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月隐月明月朦胧 2024-09-19 07:24:36

很简单。转到 web.config 的属性,对于“构建操作”选择“无”,“复制到输出目录”选择“不复制”

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文