zoukankan      html  css  js  c++  java
  • ClickOnce报错的解决:VS 2010 RTM returns Error: "Cannot publish because a project failed to build"

    VS 2010 RTM returns Error: "Cannot publish because a project failed to build" ,even though Solution builds fine.

    Original post: http://connect.microsoft.com/VisualStudio/feedback/details/551674/vs-2010-rtm-returns-error-cannot-publish-because-a-project-failed-to-build-even-though-solution-builds-fine

    Failed to publish my application thru ClickOnce:

    Hi everyone - 

    First off, thanks for your patience with this bug. It's taken us a long while to figure this one out, but we think we've finally gotten down to the bottom of what is going on here. 

    The problem started reproducing for us all the sudden in the codebase for the next version of Visual Studio. We've debugged this, and it ends up that it's a timing issue in the build system. I spoke to the engineer in charge of the MSBuild build engine, and it ends up that the same problem existed in VS 2010, with the same symptoms: publishing works when you choose Publish from the Build menu, but it doesn't work when you use the Publishing Wizard. 

    The timing nature of this problem is why some of you are reporting the issue after having enabled/disabled various addins, commands, etc. It also perfectly explains why publishing stops working all the sudden, and why we've had such a hard time reproducing this issue. 

    The only workaround is to choose Publish from the Build menu. The reason the workaround works is because the code path for invoking the publish operation from the Build menu is a bit different than the code path for invoking it from the wizard or the property page. The wizard/property page invocation mechanism is susceptible to the timing issue, while the invocation from the Build menu should not be subject to that. 

    Choosing Publish from the Build menu will perform the publishing operation according to the last-set settings in the Publishing Wizard.

    We won't be able to address this in VS 2010; however, I know the MSBuild team is working on this issue for the next release.

    Thanks again for everyone's understanding,
    -- Izzy

    Izzy Gryko
    Lead Software Design Engineer
    Microsoft Visual Studio
    izzyg@microsoft.com                                        




  • 相关阅读:
    redis实现电商购物车
    redis应用于各种结构型和非结构型高热度数据访问加速
    Redis控制热点新闻的实效性
    Redis实现分表操作id唯一
    KrakenD网关V1.0.0文档初步翻译
    CentOS7环境下安装Chrome
    七夕秀恩爱新姿势!这波操作我给十分!
    小程序·云开发实战
    小程序·云开发实战
    小程序云开发实战
  • 原文地址:https://www.cnblogs.com/puncha/p/3877037.html
Copyright © 2011-2022 走看看