How can I disable build before publishing?

Answered How can I disable build before publishing?

  • Wednesday, February 29, 2012 2:01 PM
     
     

    Hello!

    I want to publish my project as ClickOnce. But I have an edited version of exe file. So I want to replace exe in Release folder with my exe.

    But before publishing is going build, which replaced my "new exe" file with builded.

    Can I disable auto build before publishing somehow? 

All Replies

  • Wednesday, February 29, 2012 3:24 PM
     
     

    Please ask in the forum dedicated to your topic, here:

    http://social.msdn.microsoft.com/Forums/en-US/winformssetup/threads 

    You'll get the best advice there.

  • Thursday, March 01, 2012 2:57 AM
    Moderator
     
     Answered

    I'm afraid that you cannot do that under Visual Studio:

    [

    http://msdn.microsoft.com/en-us/library/ms165431(v=vs.100).aspx

    The /target:publish command tells MSBuild to invoke the publish target. The publish target depends on the build target. This means that the publish operation is a superset of the build operation. For example, if you made a change to one of your Visual Basic or C# source files, the corresponding assembly would automatically be rebuilt by the publish operation.

    For information on generating a full ClickOnce deployment using the Mage.exe command-line tool to create your ClickOnce manifest, see Walkthrough: Manually Deploying a ClickOnce Application.

    ]

    And if you do not want the msbuild to be involved into the publish proceed, then you can consider to use the mage.exe/mageUI.exe tool to publish the application manually.


    Mike Zhang[MSFT]
    MSDN Community Support | Feedback to us

  • Thursday, March 01, 2012 3:13 PM
     
     

    Thank you, pvdg42, - you right thats more exactly place 4 my question.

    Thank you, Mike Dos Zhang, - you have gave me an answer!

  • Wednesday, March 07, 2012 11:19 AM
    Moderator
     
     

    You're welcome!

    Have a good day!


    Mike Zhang[MSFT]
    MSDN Community Support | Feedback to us