The NuGet is Microsoft.Xbox.Live.SDK.WinRT.UWP
Open your MonoGame project in VS17 and do the following:
1/ Right click references
2/ Click Manage NuGet packages
3/ Click Browse
4/ Type Xbox in the search and choose Microsoft.Xbox.Live.SDK.WinRT.UWP, then click install
5/ Close the solution and open it again
6/ Click to expand References and click the Visual C++ reference with a yellow exclamation mark to clear it
To confirm this has worked type Using Microsoft.Xbox.Services; at the top of your project (better to type instead of paste so you can see if the autopredict can see the reference)
You will also need Microsoft.Xbox.Services.System
To pass certification at a minimum you will need to have a signed in user and display the gamer tag
Now that you have the Xbox library working you can declare the variable XboxLiveUser user;
Unfortunately this is as far as I managed to get
When I do user = new XBoxLiveUser(); in the initialize section I get a stack overflow error
When I put it in the game loop (using a Boolean to ensure it is called once) the game crashes out with no error
This website describes the process but in another language
Another tip is Unity comes with VS17 and it has the Xbox cs files (in C#) accessible. Follow this link
And then do the “Import plugin” step
Go to the Assets\Xbox Live\Scripts path of your project and you’ll see files written in C# for users, profiles, leaderboards etc…
Some of it is hard to read as it is unity language. Others require jumping from one file to another as you attempt to follow what is going on. It will take some time for somebody to reverse engineer this and adapt it to monogame. Particularly as simply calling a new XboxLiveUser() doesn’t seem to be working in three different spots I have tried
I hope I have given somebody a boost in the right direction but I really hope somebody can work this out and document it for the MonoGame community
I should be a simple step by step process that shows the minimum code required and where it needs to be implemented (just like the link I posted with the javascript version)
Thanks in advance