question

tetara avatar image
0 Votes"
tetara asked ·

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

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?

windows-uwpwindows-desktop-bridge
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

tetara avatar image
0 Votes"
tetara answered ·

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.



ft.png (19.4 KiB)
· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.