desktop-bridge

How to specify parameters for the executable file in a StartupTask

梦想与她 提交于 2019-12-22 10:43:22
问题 When desktop applications set to run on startup, they usually start minimized to system tray. The common approach to implement this behavior is an special parameter for the executable when adding a shortcut to the Startup folder or registry: MyApp.exe /startminimized I need the same thing in a converted desktop app. Thanks to the StartupTask, I'm able to run the executable of the app on startup: <desktop:Extension Category="windows.startupTask" Executable="MyApp.exe" EntryPoint="Windows

StartupTask class is not recognized

好久不见. 提交于 2019-12-20 06:17:34
问题 I'm trying to get my Centennial application to autostart on logon. According to this post that can be done. But then to disable it programmatically I'd need to use the Windows.ApplicationModel.StartupTask class and Visual Studio refuses to recognize it. So how is that class used? 回答1: You need to add a reference to the Desktop Extension SDK. 来源: https://stackoverflow.com/questions/45849937/startuptask-class-is-not-recognized

Why can't I see a localdb database created by a UWP (Desktop Bridge App) in the SQL Server Object Explorer?

邮差的信 提交于 2019-12-19 19:52:41
问题 Does UWP support LocalDB? My investigations indicate there are some issues using localdb that I don't experience with SQL Server 2017 Development edition. I managed to convert a winforms EF-Code First, xaf application to run as a UWP app with the help of this blog I have Enterprise Authentication set. When I run the desktop bridge app it creates the database and log file inside c:\users\kirst which is my user folder. However I cannot see the new database in the SQL Server Object Explorer

App keeps crashing during certification when using Microsoft Advertising SDK for XAML

廉价感情. 提交于 2019-12-19 10:42:47
问题 In my already published app, I tried adding ADs using “Microsoft Advertising SDK for XAML” (tried adding reference via both NuGet and msi). On my dev machine both debug and release builds work fine, even .appxbundle created as part of packaging works as expected, but the app always crashes at launch for the reviewer when submitted for review/certification (.appxupload file). Note: The app is a Desktop Bridge app. There is a UWP app which communicates with a win32 exe. The call to launch

Communication between UWP and Non UWP app

回眸只為那壹抹淺笑 提交于 2019-12-18 04:08:46
问题 Is it possible to have communication between uwp and non uwp apps. My non-uwp is a background task which provides a service. I want to call that non-uwp service in uwp app. How to make that call? Is AppServiceConnection class available in non-uwp app? 回答1: Yes, non-UWP apps can use AppServices to communicate with UWP apps. There is a sample here: https://github.com/Microsoft/DesktopBridgeToUWP-Samples/blob/master/Samples/AppServiceBridgeSample_C%2B%2B/cs/Win32Process_CPP/Win32Process_CPP.cpp

Get file paths for files in Centennial app

与世无争的帅哥 提交于 2019-12-13 11:08:54
问题 When converting an app to a Windows Store app, we add the files as mentioned here. But now - how do we access them? What's their path? They're not in the special folder created for the package. 回答1: You can create a folder structure in your project where you can include the files and then since you are already crossing the Centennial Bridge, you can start using the Windows.Storage.StorageFile WinRT API to interact with files. For example, you can use: StorageFile

DesktopAppConverter woes, Windows 10 v.17134

*爱你&永不变心* 提交于 2019-12-13 05:17:11
问题 I'm trying to convert my Win32 app from its MSI into UWP appx package using Desktop App Converter, so that I can update it in the Windows Store. Here's the steps. When I downloaded the Windows_BaseImage_DAC_17134.wim file and tried to install it, I got this at the end (I'm not sure if it means anything): Here's the same as a text: VERBOSE: Removing any pre-existing NAT network Get-NetNat : Invalid class At C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.1.0_x64__8wekyb3d8bbwe

Windows Desktop Extensions - which version should I reference?

僤鯓⒐⒋嵵緔 提交于 2019-12-13 04:09:04
问题 Background: I'm having trouble getting my app's new version accepted by the Windows store. They say that it crashes on launch. The app runs fine even when installed from the appxbundle file on my computer. So I'm thinking maybe this has to do with the Desktop Extensions (for the UWP) that I've added. Perhaps I'm referencing the wrong version of that assembly. If the app is targeting version 16299 but min version is 14393 - which assembly of the desktop extensions should I include in the

Devops: Error CS0103: The name 'Windows' does not exist in the current context

*爱你&永不变心* 提交于 2019-12-13 03:58:12
问题 Similar to my question here I am able to build on my machine but the devops build is failing. The Desktop Bridge Package project targets Windows 10 , Version 1803, Build 17134 回答1: Looking at the Windows reference in my project it uses C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.17763.0\Windows.winmd I corrected it to use C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.17134.0\Windows.winmd The particular build error in Devops disappeared 来源: https://stackoverflow.com

Error: “This application can only run in the context of an app container.”

独自空忆成欢 提交于 2019-12-13 03:47:20
问题 I created a UWP app with desktop extensions and added the startup task as mentioned here. (I set Executable="AutoStartupTest.exe" .) I logged off and logged on and got the error in the title, and don't know how to fix it because though it makes sense - why is it not in a container? This should happen automatically, no? The link is talking about a UWP app. EDIT The extension snippet as requested here. <Extensions> <desktop:Extension Category="windows.startupTask" Executable="AutoStartupTest