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

前端 未结 19 1541
走了就别回头了
走了就别回头了 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 19:06

    Same problem with VS2017. You can try this, it worked for me.

    1. Unload the project and Edit csproj file
    2. search the keyword "WebApplication.targets"

       
      

      COMMENT or REMOVE this line.(maybe two lines depending on "Condition")

    3. Save and Reload project

    In this step, it will prompt you to install some package about 500M...

    After that, reload project, then it works!

    I guess I just miss some components when I install VS 2017.

    Also I notice the MSBuild Path is quite different in VS2017, but maybe that's not related to the problem cuz it uses relative path in the csproj file..

提交回复
热议问题