我最近为 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 不存在"?
发布评论