Running an EXE from C# using UWP

前端 未结 1 584
别那么骄傲
别那么骄傲 2020-12-28 09:28

I have searched and searched and seem to have hit a brick wall here. I am developing an application that generates an audio fingerprint to automatically search an audio data

1条回答
  •  情歌与酒
    2020-12-28 10:15

    I've been banging my head against a brick wall all night over this, but after hundreds of pages online I may have come up with a solution to my problem.

    By referencing the "Windows Desktop Extensions For The UWP v10.0.14393.0" under "References > Universal Windows > Extensions" I can use:

    await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync();
    

    The LaunchFullTrustProcess allows me to launch a trusted application from within my own application. I then modified the Package Manifest XML file and added the following under "capabilities"

    
    

    I then added the following to "applications" in the XML

    
        
    
    

    Then I modified the dependencies to make my application run on Windows Desktop machines

    
        
    
    

    I was then able to launch the application. Once I finish writing the code I will test it and post the correct solution to the issue for future reference.

    0 讨论(0)
提交回复
热议问题