desktop-bridge

How to digitally sign the installation files of the desktop bridge app?

末鹿安然 提交于 2021-02-08 10:00:51
问题 This problem may not be as simple as the title says, because for some reason, I am not authorized to have a certificate, and I can only give the program (not the code) to another person for digitally sign. I'll elaborate on the following. What I already know is that after I upload the app to MS store, Ms store will automatically sign my app, but it seems that it will only sign the msixbundle file. because in this path: C:\Program Files\WindowsApps\[AppName]_[AppVersion]_neutral__[PackageID] ,

Desktop Bridge Window Store Application fails. Local Installation works

一曲冷凌霜 提交于 2021-02-08 06:48:53
问题 I have a Desktop Bridge application which launches a UWP window from the menu (Select Help > Contents to launch the UWP Window). The local installation ( AppPackages\appName_Test\appName_x86_bundle.msixbundle ) works fine. I've uploaded AppPackages\appName_x86_bundle.msixupload to the Microsoft Store but the store version fails to launch the window. The window opens for a couple of seconds and then shuts down. Debugging the installed store version I get the following exception: Exception

How to debug a .exe launched from Full​Trust​Process​Launcher

霸气de小男生 提交于 2021-02-08 05:27:14
问题 I have built a UWP app, and a WPF app within the same solution. I am using the Full​Trust​Process​Launcher class to launch the WPF app from the UWP app. I am also using the App​Service​Connection class to allow the two apps to communicate with each other. This all works fine in a basic scenario. But once I start really developing my WPF app beyond the samples I can find I will need to start debugging in visual studio. I've tried the following: Set breakpoints within the WPF code. Result : I

How to properly set AppExecutionAlias so the program could be launched from command line?

こ雲淡風輕ζ 提交于 2021-02-07 19:49:46
问题 The Package.appxmanifest for this WPF app has already set <uap5:Extension Category="windows.appExecutionAlias" Executable="PROGRAMNAME.exe" EntryPoint="Windows.FullTrustApplication"> <uap5:AppExecutionAlias> <uap5:ExecutionAlias Alias="PROGRAMNAME.exe" /> </uap5:AppExecutionAlias> </uap5:Extension> but when I try to run PROGRAMNAME from command line there is an error message "The system cannot find the file ....WindowsApps..." I can go to that WindowsApps directory and even though I see that

How to properly set AppExecutionAlias so the program could be launched from command line?

梦想的初衷 提交于 2021-02-07 19:48:57
问题 The Package.appxmanifest for this WPF app has already set <uap5:Extension Category="windows.appExecutionAlias" Executable="PROGRAMNAME.exe" EntryPoint="Windows.FullTrustApplication"> <uap5:AppExecutionAlias> <uap5:ExecutionAlias Alias="PROGRAMNAME.exe" /> </uap5:AppExecutionAlias> </uap5:Extension> but when I try to run PROGRAMNAME from command line there is an error message "The system cannot find the file ....WindowsApps..." I can go to that WindowsApps directory and even though I see that

Cannot access files in output directory when running under Desktop Bridge

左心房为你撑大大i 提交于 2021-01-29 13:12:27
问题 In my WPF project, I have some JSON files that are set as Content/Copy to Output Folder. When running as standard WPF, I access them as follows and it works fine. foreach (var config in Directory.GetFiles("HostConfigs", "*.json")) But when I run the app under the Desktop Bridge using the packaging project, it throws the following exception System.IO.DirectoryNotFoundException: 'Could not find a part of the path 'C:\WINDOWS\SysWOW64\HostConfigs'.' 回答1: Desktop Bridge projects don't

How Best to Use UWP FullTrustProcessLauncher to Launch Seperate Unity Game

偶尔善良 提交于 2021-01-29 06:40:51
问题 I am working for a client who wants a UWP Portal App and a Pac-Man clone game that can be launched from inside the Portal App. I set up the FullTrustProcessLauncher capability in the UWP App to handle launch the exe for the game. I also had to add a post-build item to copy the exe and accompanying data folder to the AppX folder of the build. The FullTrustProcessLauncher fires the exe fine, but I keep getting the "Data folder not found error". So my questions are this: 1. Why does it keep

Can't upgrade settings when updating a WPF Desktop Bridge Universal app

两盒软妹~` 提交于 2021-01-27 06:57:07
问题 My app is written in WPF C# and I export it as Universal app using MSIX Application Project straight from Visual Studio. I just can't get the settings to persist between updates. I'm using the following code in the MainWindow_Loaded event: Settings.Default.Upgrade(); Settings.Default.Save(); Settings.Default.Reload(); I tried keeping assembly information versions the same and just increment the version in the appx.manifest but it doesn't work. I've noticed that each time the app updates it

Microsoft store certification fails due to DPI awareness

隐身守侯 提交于 2020-12-11 00:57:15
问题 I had wanted to publish a new version of my app (WPF converted to UWP with Desktop Bridge) to the Microsoft Store, but it failed the certification with following warning: File **.exe neither has PerMonitorV2 manifested in the manifest nor calls into DPI Awareness APIs for ex: user32!SetProcessDpiAwarenessContext or user32!SetThreadDpiAwarenessContext. The app *** is not DPI Aware. I have the following questions: First of all I had published the first version of my app at the end of the last

Microsoft store certification fails due to DPI awareness

一曲冷凌霜 提交于 2020-12-11 00:55:54
问题 I had wanted to publish a new version of my app (WPF converted to UWP with Desktop Bridge) to the Microsoft Store, but it failed the certification with following warning: File **.exe neither has PerMonitorV2 manifested in the manifest nor calls into DPI Awareness APIs for ex: user32!SetProcessDpiAwarenessContext or user32!SetThreadDpiAwarenessContext. The app *** is not DPI Aware. I have the following questions: First of all I had published the first version of my app at the end of the last