Search Unity

Microsoft Store Desktop Bridge Application and Microsoft.Windows.SDK.Contracts

Discussion in 'Windows' started by pavelkouril, Jun 15, 2020.

  1. pavelkouril

    pavelkouril

    Joined:
    Jul 22, 2016
    Posts:
    129
    Hello,

    Is https://www.nuget.org/packages/Microsoft.Windows.SDK.Contracts supported to call UWP APIs (speficially, the purchase APIs for in-app purchases) from a Win 32 application (Standalone Windows Player) when using the Desktop Bridge to package application for store?

    I can't find anything about this in the documentation anywhere; if the Contracts are not supported, what would be the way to call the purchase APIs from a Standalone Windows Player?

    (P.S. Switching to UWP player is not the acceptable answer for my particular scenario - I am specifically looking into the options to process MS Store purchases from Standalone Windows Player)
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    We don't support using it from C# right now. You can call that code from native C++ plugins, though.
     
  3. pavelkouril

    pavelkouril

    Joined:
    Jul 22, 2016
    Posts:
    129
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    That should work. You may also try using https://github.com/microsoft/CsWinRT if it doesn't.

    We don't have any concrete plans of adding Windows Runtime support to Windows Standalone player at this time.