Simple libraryto detect if a desktop application is running as classic Win32 or packaged with the Desktop Bridge
Перейти к файлу
microsoft-github-policy-service[bot] ab28efb1c4
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2023-06-12 20:26:07 +00:00
DesktopBridge.Helpers Added package info 2020-01-25 12:44:19 +01:00
Samples Added multi-target support for .NET Framework and .NET Standard 2.0. Now the library can be used also with .NET Core 3.0 WPF and Windows Forms apps. 2019-01-29 14:07:53 +01:00
.gitattributes Add .gitignore and .gitattributes. 2016-09-30 17:55:39 +02:00
.gitignore merged 2018-04-12 18:29:48 +02:00
DesktopBridge.Helpers.sln Added multi-target support for .NET Framework and .NET Standard 2.0. Now the library can be used also with .NET Core 3.0 WPF and Windows Forms apps. 2019-01-29 14:07:53 +01:00
LICENSE Initial commit 2018-04-12 08:34:10 -07:00
LICENSE.md Updated README and added LICENSE 2016-09-30 18:13:58 +02:00
README.md merged 2018-04-12 18:29:48 +02:00
SECURITY.md Microsoft mandatory file 2023-06-02 19:08:36 +00:00

README.md

Helpers for the Windows 10 Desktop Bridge

The library offers a simple class to detect if a desktop application is running as native or as converted inside the UWP container.

Example code:

public bool IsRunningAsUwp()
{
    DesktopBridge.Helpers helpers = new DesktopBridge.Helpers();
    return helpers.IsRunningAsUwp();
}

The repository contains also a sample for eery major .NET desktop technology:

  • Windows Forms
  • WPF
  • Console application

Important! The sample projects are based on Visual Studio 15 Preview and the Desktop Bridge extension

The library is available also on NuGet: https://www.nuget.org/packages/DesktopBridge.Helpers/

The library currently supports every application developed with .NET Framework >=4.0

Thanks to Raffaele Rialdi for the help with understanding how to properly use the P/Invoke approach

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.