desktop-bridge

Unable to show Share UI in desktop bridge app

这一生的挚爱 提交于 2019-12-12 23:33:04
问题 In native UWP apps, we can show share UI by calling DataTransferManager.ShowShareUI method. DataTransferManager.ShowShareUI(); Calling this method in a desktop bridge app raises an exception: Element not found. This method cannot be called while the app is in the background That's kind of expected as the bridge app does not use the UI elements of UWP. So I tried to use way it should be done in native Win32 apps. In native Win32 apps, we can show share UI by calling DataTransferManagerHelper

Specifying a package identity name with Desktop App Converter

心已入冬 提交于 2019-12-12 10:23:02
问题 I am using DesktopAppConverter.exe to create an appx for Windows Store. I get the following errors on upload to MS: Invalid package identity name: XXXX (expected: 184YYY.XXX) Invalid package family name: XXX_eqm6jq3xyprpt (expected: 184YYY.XXX_eqm6jq3xyprpt) How can I specify a package identity name anf family name, I am currently using the command: DesktopAppConverter.exe -Installer C:\input\XXX.exe -InstallerArguments /VERYSILENT -Destination C:\output -PackageName "XXX"

EntityFramework.SqlServer missing in release mode

余生长醉 提交于 2019-12-12 01:24:21
问题 I have several modules in my XAF Winforms application. The lowest tier makes use of Entity Framework 6.2 as installed by Nuget. The app runs fine in debug mode. However in release mode I get the following warning building. Severity Code Description Project File Line Suppression State Warning Could not resolve this reference. Could not locate the assembly "EntityFramework.SqlServer". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get

Launch app converted by DAC

本秂侑毒 提交于 2019-12-11 15:22:09
问题 I've converted my app using Desktop App Converter . Installed appx from step 1. Launched cmd.exe and entered the following command: "C:\Program Files\WindowsApps\MyApp_5.1.30.6486_x86__z4vxg0xscex6e\MyApp\myapp.exe" Got the following error message: Access is denied . Why? What is the proper way to programmatically launch DAC converted app including any EXE inside of it? 回答1: Once installed, you can launch the app from the app list in the start menu. If you need to be able to launch the app

In WPF control - display a UWP app

雨燕双飞 提交于 2019-12-11 14:21:12
问题 https://docs.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-extend This explains a process of showing a UWP app in a separate window than the WPF app. Is it possible to display them in the same window? Eg. display the UWP app inside a WPF control. Or even better : display a UWP control inside a WPF control. 回答1: Things have changed and Windows now supports hosting UWP controls inside Win32 applications such as WPF or Windows Forms. You can find documentation on XAML islands and the

“Access is denied” In UWP (C#) when trying to run desktop extension App

扶醉桌前 提交于 2019-12-11 09:34:27
问题 I'm trying to run a tutorial code for FullTrustProcessLauncher, In order to run desktop Application from UWP (As I asked in Run python script from UWP). The source code is found here: UWP-FullTrust. Im running the first example: UWP_FullTrust_1. It's compiles all ok but when I run the console command (Click the button) I get in the line await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync(); this exeption: "Access is denied. (Exception from HRESULT: 0x80070005 (E

Error message when trying to start an expired trial UWP app downloaded from the Windows Store — “A device attached to the system is not functioning”

青春壹個敷衍的年華 提交于 2019-12-11 04:53:39
问题 I'm trying to understand how the trial licensing works for my Win32 app that I converted to a UWP app using the Desktop Bridge. The app was submitted to the Windows Store as a paid app ($1.99 per copy) with a 1 day trial. So I downloaded it as a trial app onto my test Windows 10 machine and let it run for longer than 24 hrs w/o buying it. After a day the app was still present on the computer (in the Start menu) but when I tried to run it again by clicking its Start menu icon, I was greeted by

Fixing scaled images in AppX manifest generated by Destop App Converter

烈酒焚心 提交于 2019-12-10 17:17:42
问题 I have used the Desktop App Converter to convert my Win32 application to .appx . The converter failed to convert application icons correctly. Icon transparency was lost. While I have reported this (bug?) to Microsoft, meanwhile I'd like to try to convert the icons manually. And I want to generate the .appx manually (using the makeappx ) in the end anyway. So I need to create the AppxManifest.xml . Problem is that the AppxManifest.xml generated by the Desktop App Converter is not valid. All

The underlying provider failed on Open after deleting database files and sqllocaldb

二次信任 提交于 2019-12-10 14:43:47
问题 I am investigating my experience of the issue here When my Winforms XAF, Entity Framework Code First + Desktop Bridge application is installed via the Windows Store, it creates a database in the users directory. If I delete the files then I will get an error when I try to re-run the application. The underlying provider failed on Open This is because I have not dropped the database properly. As is explained in the linked issue. I tried the fix of sqllocaldb.exe stop MSSQLLocalDB sqllocaldb.exe

Get protocol activation args in “Project Centennial” app

浪尽此生 提交于 2019-12-10 12:16:15
问题 How can I access the protocol activation arguments in a Winforms app that's converted into a UWP app? The problem is that the OnActivated method is absent so I can't get the IActivatedEventArgs . 回答1: I'm assuming you want to handle file types in which case you can check Environment.GetCommandLineArgs() as normal for arguments. The second argument will be the file or protocol activated. 回答2: How can I access the protocol activation arguments in a Winforms app that's converted into a UWP app?