none
Clickonce publish commands RRS feed

  • Question

  • How we can execute the Visual Studio - Clickonce - Publish by using MSBuild script?

    Do we have any powershell commands?

    I heard that "ClickOnce setting manipulation and deployment is not available via scripting or MSBuild commands" is this true?, if not how we can achieve this?

    Please help us.

    Thursday, April 7, 2016 6:00 AM

Answers

  • Hi Raja Reddy G,

    >> How we can execute the Visual Studio - Clickonce - Publish by using MSBuild script

    >> I heard that "ClickOnce setting manipulation and deployment is not available via scripting or MSBuild commands" is this true?, if not how we can achieve this?

    You could use MSBuild script command to publish your project, instead of using clickonce. The following links provide some demos about implementing this need and you could have a look.

    For example,

    msbuild C:\ContosoUniversity\ContosoUniversity.sln /p:DeployOnBuild=true /p:PublishProfile=Test

    http://www.asp.net/mvc/overview/deployment/visual-studio-web-deployment/command-line-deployment

    http://weblogs.asp.net/lkempe/build-clickonce-deployment-packages-using-msbuild-and-team-city

    >> Do we have any powershell commands?

    As this forum is about the usage of MSBuild, you’d better post this issue in powershell forum for better support.

    Best Regards,
    Li Wang


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, April 11, 2016 1:09 AM