Why do I get the error “The target GatherAllFilesToPublish does not exist”?

前端 未结 19 1540
走了就别回头了
走了就别回头了 2020-12-07 18:21

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 depl

19条回答
  •  悲哀的现实
    2020-12-07 18:41

    I had the same issue: I created the project in VS 2010, and had to publish from VS 2019. None of the solutions here worked for me, and I'd been with the issue for about a day.

    What did work came from this link: http://www.dotnetxp.com/visual-studio-error-publish-target-gatherallfilestopublish-not-exist-project/

    This is what I did:

    ** Unloaded offending project.

    ** Open csproj file in text editor.

    ** Find this line

    
    

    and replace with this. I use 16.0 because that's the version I'm using (vs2019).

    
    16.0
    $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
    
    
    
    
    

    ** Reload project and publish.

    Worked like a charm.

提交回复
热议问题