为什么我会收到错误“目标 GatherAllFilesToPublish 不存在"?

编程入门 行业动态 更新时间:2024-10-26 15:23:16
本文介绍了为什么我会收到错误“目标 GatherAllFilesToPublish 不存在"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我最近为 Visual Studio 2010 Service Pack 1 安装了新的 Azure 开发工具.每次我尝试发布现有网站(使用文件系统部署)时,我都会收到以下错误:

I have recently installed the new Azure development tools for Visual Studio 2010 service pack 1. Every time that I try to publish an existing website (using file system deployment) I get the following error:

项目中不存在目标GatherAllFilesToPublish".

The target "GatherAllFilesToPublish" does not exist in the project.

谁能告诉我我错过了什么?

Can anyone tell me what I am missing?

谢谢

推荐答案

我想我知道问题是什么.安装 Azure SDK 位时,它会安装一些 VS Web 发布更新.其中之一在

I think that I know what the issue is. When you install the Azure SDK bits it installs some VS Web Publish updates. One of these updates the file at

C:Program Files (x86)MSBuildMicrosoftVisualStudiov10.0WebApplicationsMicrosoft.WebApplication.targets

根据我们的设置是如何定义的,如果该文件具有更新的时间戳(无论出于何种原因),那么当您安装新组件时,该文件不会更新.

Based on how our setup is defined if that file has an updated timestamp (for whatever reason) then when you install the new component the file does not get updated.

要解决此问题,您应该能够按照以下步骤操作:

To resolve this you should be able to follow the steps below:

  • 将 Microsoft.WebApplication.targets 重命名为 Microsoft.WebApplication.targets.bak
  • 使用位于 go.microsoft/fwlink 的 exe 安装/修复/?LinkId=253458
  • Rename the Microsoft.WebApplication.targets to Microsoft.WebApplication.targets.bak
  • Install/Repair using the exe at go.microsoft/fwlink/?LinkId=253458

更多推荐

为什么我会收到错误“目标 GatherAllFilesToPublish 不存在"?

本文发布于:2023-10-22 08:39:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1517008.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:我会   不存在   错误   目标   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!