Build succeeds, but publish fails

前端 未结 21 1534
陌清茗
陌清茗 2020-12-09 14:29

Up until two days ago, I was able to use Visual Studio 2010\'s \"Publish Web\" option by right clicking on my project and clicking the publish button on the context menu. No

相关标签:
21条回答
  • 2020-12-09 15:20

    I had to delete the publish profile, commit, and then recreate the publish profile from scratch.

    0 讨论(0)
  • 2020-12-09 15:21

    I ran into a similar problem when I manually copied a folder into a project (in my case ckeditor). It built fine and ran locally with no issues. However, when publishing the folder was ignored. It turns out I had to create the empty folder 1st and then copy in the folder contents. Visual Studio needs to know the item was created it appears, because after that it was recognized upon publishing.

    0 讨论(0)
  • 2020-12-09 15:23

    I removed bin & obj folder and also the content of the inetpub/wwwroot/myapp and problem solve

    0 讨论(0)
  • 2020-12-09 15:23

    open projectname.csproj file in notepad and remove obj\debug\project name.csprojResolveAsseblyReference.cache line

    0 讨论(0)
  • 2020-12-09 15:23

    This issue may come because of move project from one solution to another solution or moving to another source control.

    Simple way to resolve this issue:

    1. Take the current project backup and remove you current project from solution.

    2. Add new project to your solution and include your files from backup and rebuild your project and done.

    0 讨论(0)
  • 2020-12-09 15:26

    I had this issue recently publishing to Azure. I ended up deleting all the files in the bin folder( deleted all files WITHIN visual studio solution explorer under bin folder, but leave the bin folder itself empty) , and rebuilding the project. This seemed to make visual studio happy and azure publish worked. hope this helps

    0 讨论(0)
提交回复
热议问题