none
Deploy Solution

    Question

  • Hi,

    I created simple C# UWP app.I would like to do as PostBuildEvent what Deploy Solution menu item does. Apparently it calls msbuild. What is command line for msbuild for this case?

    Best regards,

    Franco

    Saturday, November 11, 2017 6:26 AM

All replies

  • Hi xfranco2,

    Thanks for posting here.

    >>>What is command line for msbuild for this case?

    If you want to do what Deploy Solution menu item does by PostBuildEvent, you can simple execute the Add-AppDevPackage.ps1 in the post-build event, like:

    powershell.exe -file "$(ProjectDir)\AppPackages\ProjectName_1.0.0.0_x86_Debug_Test\Add-AppDevPackage.ps1"

    With this task, the project will be deploy as what Deploy Solution menu item does:

    Hope this helps.


    MSDN Community Support Please remember to click Mark as Answer. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Monday, November 13, 2017 8:36 AM
  • @xfranco2, Any update for this issue? Have you resolved your issue? If not, Please let me know the latest information about this issue.

    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, November 20, 2017 7:29 AM