uwp-desktop | Lets .NET desktop apps invoke UWP APIs | Runtime Evironment library

 by   ljw1004 C# Version: Current License: Apache-2.0

kandi X-RAY | uwp-desktop Summary

kandi X-RAY | uwp-desktop Summary

uwp-desktop is a C# library typically used in Server, Runtime Evironment applications. uwp-desktop has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Lets .NET desktop apps invoke UWP APIs
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              uwp-desktop has a low active ecosystem.
              It has 155 star(s) with 23 fork(s). There are 22 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 12 open issues and 5 have been closed. On average issues are closed in 169 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of uwp-desktop is current.

            kandi-Quality Quality

              uwp-desktop has 0 bugs and 0 code smells.

            kandi-Security Security

              uwp-desktop has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              uwp-desktop code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              uwp-desktop is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              uwp-desktop releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of uwp-desktop
            Get all kandi verified functions for this library.

            uwp-desktop Key Features

            No Key Features are available at this moment for uwp-desktop.

            uwp-desktop Examples and Code Snippets

            No Code Snippets are available at this moment for uwp-desktop.

            Community Discussions

            QUESTION

            TargetInvocationException when using uwp bluetooth APIs in .NET 5 winforms app
            Asked 2021-May-06 at 07:09

            The code works fine on Windows 10,
            but I'm getting TargetInvocationException in Windows 8.1 when using uwp bluetooth APIs in my .NET 5 winforms app

            inner exception is

            ...

            ANSWER

            Answered 2021-May-06 at 07:09

            TargetInvocationException when using uwp bluetooth APIs in .NET 5 winforms app

            I'm afraid you can't run it in Windows 8.1 system, please refer BluetoothLEAdvertisementWatcher document, the support lowest version is Build 10240, and it will not work in Windows 8.1 system.

            Source https://stackoverflow.com/questions/67400265

            QUESTION

            Global low-level mouse hook doesn't get called when UWP desktop app is out of focus
            Asked 2019-Sep-07 at 22:47

            I'm creating a desktop UWP app and I need to set a global low level mouse hook to detect and change the position of it when it is moved to certain locations of the screen.

            It works fine while my app's window is in focus and the values get logged correctly to the output window(meaning that the hook is working correctly).

            This UWP app isn't going to be on the store and will only be used on a Windows 10 desktop (1903+).

            I've tried calling SetWindowsHookEx on a different thread (which didn't do anything). Tried also passing a thread ID when calling SetWindowsHookEx to no avail. Also tried using the following restricted capabilities to prevent the app to suspend when not on focus: extendedExecutionUnconstrained and extendedBackgroundTaskTime along with the PreventFromSuspending method shown here. Another thing I tried was to set uiAccess to true on the app manifest, which also didn't work.

            The global hook is supposed to work even when the app isn't in the foreground, but instead it just works when it has the active window focus.

            ...

            ANSWER

            Answered 2019-Sep-06 at 00:41

            UWP apps are running in the sandbox, so that doesn't sound strange. If you think a bit it is a security problem if the app can receive such an input and as 'Security' is listed as No.1 characteristic of the UWP this behavior is expected.

            Source https://stackoverflow.com/questions/57814391

            QUESTION

            System.BadImageFormatException in UWP with WPF desktop bridge package
            Asked 2019-Aug-14 at 23:18

            I''ve fully and detailed described problem and question in this topic System.NullReferenceException in AppServiceResponse and System.BadImageFormatException of UWP with WPF desktop bridge package, but still have no found answer, what can cause this failure.

            Topic link to Windows Dev Center above describes assembly, shows all used code with examples, including attempts to fix problem, and other details. So I will put only basic part of task in this stackoverflow topic to avoid text overload in post and focus only on System.BadImageFormatException, which provokes App.Connection null in Windows Application Package Project with connection from UWP to WPF application, created according to UWP with Desktop Extension – Part 3 lesson, (sending of request to desktop extension, read registry key values, and sending of request from desktop extension to UWP, handle requests from desktop code).

            I've tried fix it different ways (also described above), but can't find any clue of reason, at least to know where to look for problem, maybe I've missed something, but I can't find related useful answers anywhere in internet

            This is the message, but the System.Runtime.WindowsRuntime.dll is already in references:

            System.BadImageFormatException HResult=0x80131058 Message=Could not load file or assembly 'System.Runtime.WindowsRuntime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=...' or one of its dependencies. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (Exception from HRESULT: 0x80131058) Source=WpfApp1
            StackTrace: at WpfApp1.MainWindow.d__4.MoveNext() in C:\Users\User\Desktop\UWP\App\WpfApp1\MainWindow.xaml.cs:line 58 at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at WpfApp1.MainWindow.InitializeAppServiceConnection() at WpfApp1.MainWindow..ctor() in C:\Users\User\Desktop\UWP\App\WpfApp1\MainWindow.xaml.cs:line 37 Inner Exception 1: BadImageFormatException: Cannot load a reference assembly for execution.

            Any advice, guide or example would be very helpful

            EDIT 1: **************************************************************************************************

            I've tried all this combinations below two ways Debug and Release, as well as changed Solution platform "compiler settings", from menu bar of VS target from “Any CPU” to “X86 ” and vice-versa as shown in System.BadImageFormatException: Could not load file or assembly [duplicate], and from Solution->Properties->Configuration Properties->Configuration->Project contexts as well as from Project->Properties->Build->Platform target, but functionality and failure equally occurs in all cases:

            Current Configuration Properties:

            ...

            ANSWER

            Answered 2019-Jul-13 at 18:11

            This exception occurs when referencing the Windows Runtime libraries incorrectly from the non-UWP project (WPF, Winforms, Console, etc.). Be sure to reference them as follows

            1. In the "Add Reference …" dialog click "Browse …" and set the filter to "All Files (*.*)"
            2. Navigate to "%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework.NETCore\v4.5\System.Runtime.WindowsRuntime.dll"
            3. Navigate to "%ProgramFiles(x86)%\Windows Kits\10\UnionMetadata\{TargetVersion}\Windows.winmd"

            Source https://stackoverflow.com/questions/56926852

            QUESTION

            I need the "Windows Desktop Extensions for the UWP", but I don't found it in my reference window
            Asked 2019-Apr-30 at 18:37

            I am setting up a UWP-Desktop bridge and for that I need the "Windows Desktop Extensions for the UWP".

            The problem is, I don't have the entry in my reference window to include the extensions.

            Windows 10 SDK v. 10.0.17763.132

            http://prntscr.com/nibwjd - So should be and that's my reference window: http://prntscr.com/nibx1g

            ...

            ANSWER

            Answered 2019-Apr-30 at 18:37

            It works now. The problem was the path of my Windows Kits. The right path for the kits: C:\Program Files (x86)\Windows Kits\10

            Source https://stackoverflow.com/questions/55906581

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install uwp-desktop

            You can download it from GitHub.

            Support

            Look on nuget.org at the uwp-desktop packages already released:. The pattern is that if someone wants to write a desktop app that targets 10240, they'd reference the latest 10240 uwp-desktop package. If someone wants to write a desktop app that targets 10586, they'll reference the latest 10586 package. Each time a new WinRT release comes out, we make a corresponding new package of UwpDesktop. The new package has /r: references to the winmds that contain the new APIs. The minor versions are there because I made bugfixes or feature improvements to UwpDesktop itself, and wanted those fixes to be available to everyone, no matter what their target. When a new WinRT release comes out, ...
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/ljw1004/uwp-desktop.git

          • CLI

            gh repo clone ljw1004/uwp-desktop

          • sshUrl

            git@github.com:ljw1004/uwp-desktop.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link