How do I package an exe file in my Desktop Bridge UWP app?

tetara 116 Reputation points
2019-12-28T09:39:00.417+00:00

I would like to specify an exe file as the Full Trust package of my UWP Desktop Bridge app (which I set up according to this tutorial https://stefanwick.com/2018/04/06/uwp-with-desktop-extension-part-1/). Basically, instead of using a WPF or console assembly as the full trust, use an executable directly.

The exe file is compiled separately as it's a python code source, that's why I can't build it as part of my solution. Is there a way to reference it in the MSIX packaging project?

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

Accepted answer
  1. tetara 116 Reputation points
    2019-12-28T11:26:45.663+00:00

    Okay I figured it out. I can host the executable inside the UWP package, don't need to use Desktop Bridge. Just need to add this to the package.appxmanifest of UWP package:

    alt text

    Add the runFullTrust capability as well, now put the FullTrust.exe in the Assets folder, include in the project and set to always copy to output folder in properties.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Cyrille de Brébisson 6 Reputation points
    2022-01-25T06:22:36.73+00:00

    Hello,

    Can you please tell us more about your solution here?
    I tried doing what you are showing here, but I am getting an error because it seems to want me to add a dependency to an other project in the package.

    1 person found this answer helpful.
    0 comments No comments