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:
The target "GatherAllFilesToPublish" does not exist in the project.
Can anyone tell me what I am missing?
Thanks
If editing in VS2012 (Visual Studio 2012) a VS2010 project try this. Edit the csproj file from:
And change to:
Guys I'm terribly sorry you are running into this issue.
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)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.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:
Can you try it out and let me know if it works or not?
I have the same issue in VS2013, the solution I found was by creating a new empty web application project can copying the following lines from it into my old website project: At the top:
Removing these installations solved the issue for me:
Reference
I realize this in an old question, but I ran into it recently and here is how I solved it.
Background: I had an old project that I upgraded to VS studio 13. It looks like the project file wasn't upgraded properly.
There are references to VS v10.0, in the csproj file, but I am running VS 13 which is really "v12.0".
So I told the csproj file to use the "v12.0" folder, not a "v10.0" folder.
This is what I had:
This is what I changed it into:
Now my publishing to the filesystem works!
Same issue I have Fixed. Please check if some files are missing into solution. if you are facing error like
Error - The target "GatherAllFilesToPublish" does not exist in the project.
Then just open .proj file and delete this line<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
You get actual error or those missing files into solution