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

tetara 116 Reputation points

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 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

    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


    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