Visual Studio 2010 RTM is not publishing with ClickOnce

前端 未结 8 1943
醉话见心
醉话见心 2021-02-01 02:57

Is anyone using ClickOnce with VS2010?

I’m getting the following on publish, when the solution builds fine ...

Building WindowsFormsApplication1...
Er         


        
8条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 03:14

    Little late for this comment, but I found this question because I was experiencing the same thing. Offering this here because the suggested work-arounds did not work for me.

    My project builds and runs without error. I tried a build-clean, manually deleting the projects bin/ and obj/ folders, even using the Publish Wizard/Build-Menu->Publish. All would fail with the described "Cannot publish because a project failed to build."

    Here's what made it work for me: I'm publishing to a UNC path, but the Installation Folder URL (on the project-setting's Publish tab,) was set to a URL that's exposed by IIS running on the server that also exposes the UNC path. I tried just setting the Installation Folder URL to the UNC path, and the ClickOnce build finally built and published. I don't get the web page, but we can live with that for now.

提交回复
热议问题