Visual Studio 的一项核心功能,允许开发人员在代码执行期间进行检查、分析和故障排除。
我不确定这个方法在其他地方是否有效,不过它对我有效。
来源:Trying to publish to a folder only builds and doesn't actually publish, unless extra optional components are installed
在 Visual Studio Installer 中选 “修改”,然后安装 “ASP.NET 和 Web 开发” 工作负荷也许能解决这个问题