为什么我会收到错误“目标 GatherAllFilesToPublish 不存在"? [英] Why do I get the error "The target GatherAllFilesToPublish does not exist"?

查看:53
本文介绍了为什么我会收到错误“目标 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:

  • Rename the Microsoft.WebApplication.targets to Microsoft.WebApplication.targets.bak
  • Install/Repair using the exe at http://go.microsoft.com/fwlink/?LinkId=253458

这篇关于为什么我会收到错误“目标 GatherAllFilesToPublish 不存在"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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