MicrosoftDocs / xbox-live-docs

Documentation for developing with the Xbox Live services
Creative Commons Attribution 4.0 International
47 stars 37 forks source link

The C# Example doesn't work #4

Open taoyouh opened 5 years ago

taoyouh commented 5 years ago

I installed the SDK "Microsoft.Xbox.Live.SDK.WinRT.UWP" in a UWP project, but the XboxLiveUser class is not available in C#. It seems that the WinRT NuGet package is only usable in C++ projects but not in C# projects. But the docs don't mean this. Should the documents be updated?

Another relevant document page: https://docs.microsoft.com/en-us/gaming/xbox-live/get-started-with-creators/develop-creators-title-with-visual-studio “... whereas the WinRT SDK is for game engines written with C++, C#, or JavaScript.”


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

taoyouh commented 5 years ago

I have found the possible cause of this problem. It seems that the package requires "Visual C++ 2015 Runtime for Universal Windows Platform Apps". If I didn't install "C++ tools for Universal Windows Platform", that requirement can't be fulfilled so the NuGet package doesn't work. Maybe you should describe this requirement in the "Getting Started" page.