为什么当我发布带有“仅运行该应用程序所需的文件"的ASP.NET Web项目时,为什么不复制web.config?选项? [英] Why the web.config isn't copied when I publish an ASP.NET Web Project with the "Only files needed to run this application" option?

查看:152
本文介绍了为什么当我发布带有“仅运行该应用程序所需的文件"的ASP.NET Web项目时,为什么不复制web.config?选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更正?

推荐答案

仅运行该应用程序所需的文件"表示bin文件夹中的DLL和引用等任何生成输出文件以及具有内容生成操作"的任何文件.

"Only files needed to run this application" means any build output files like DLLs and references in the bin folder and any files that have a Build Action of Content.

由于web.config都不是,因此您必须将publish选项更改为All Project Files,否则必须手动复制web.config.

Since the web.config is neither of these, you'll have to change the publish option to All Project Files, or else copy the web.config manually.

这篇关于为什么当我发布带有“仅运行该应用程序所需的文件"的ASP.NET Web项目时,为什么不复制web.config?选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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