Answered by:
Xbox live c# development (no unity)

Question
-
Hi,
if i decide use c# interop source from XboxLive Unity nuget package i ll can publish my uwp game c# (no unity) and use xbox live interop c# with no unity api?
Thanks
Fabio
Wednesday, June 14, 2017 3:03 PM
Answers
-
The Xbox Live Service API (XSAPI) exposes two sets of APIs -- a C++ API and WinRT API, and we created a Unity plugin.
For developers in the Xbox Live Creators program that want to use C# without Unity, we recommend the Xbox Live WinRT nuget package here: https://developer.microsoft.com/en-us/games/xbox/docs/xboxlive/get-started/creators/getting-started-uwp-vs-creators. In step 2, use Microsoft.Xbox.Live.SDK.WinRT.UWP, and skip step 6 to include the header.
The API you'll see in C# with this package will be very similar to what you see in the C# interop source. Our C# interop source isn't well tested outside of Unity, so that's why this path isn't recommended but you can ship with it.
- Proposed as answer by Jason Sandlin - Xbox Live TeamMicrosoft employee Thursday, June 15, 2017 7:35 PM
- Edited by Jason Sandlin - Xbox Live TeamMicrosoft employee Sunday, June 18, 2017 4:19 AM
- Marked as answer by Kartijno79 Wednesday, June 21, 2017 9:37 AM
Thursday, June 15, 2017 7:32 PM
All replies
-
The Xbox Live Service API (XSAPI) exposes two sets of APIs -- a C++ API and WinRT API, and we created a Unity plugin.
For developers in the Xbox Live Creators program that want to use C# without Unity, we recommend the Xbox Live WinRT nuget package here: https://developer.microsoft.com/en-us/games/xbox/docs/xboxlive/get-started/creators/getting-started-uwp-vs-creators. In step 2, use Microsoft.Xbox.Live.SDK.WinRT.UWP, and skip step 6 to include the header.
The API you'll see in C# with this package will be very similar to what you see in the C# interop source. Our C# interop source isn't well tested outside of Unity, so that's why this path isn't recommended but you can ship with it.
- Proposed as answer by Jason Sandlin - Xbox Live TeamMicrosoft employee Thursday, June 15, 2017 7:35 PM
- Edited by Jason Sandlin - Xbox Live TeamMicrosoft employee Sunday, June 18, 2017 4:19 AM
- Marked as answer by Kartijno79 Wednesday, June 21, 2017 9:37 AM
Thursday, June 15, 2017 7:32 PM -
I fought trying to access the API with C# until I found your answer here: https://stackoverflow.com/questions/44649888/how-to-add-xsapi-to-c-sharp-uwp-project-in-vs-2017?newreg=bf769ebf81724b52bfed5f64045da8e9
Maybe I missed something obvious, but I went round and round for awhile without ever seeing the v140 stuff referenced anywhere else. I don't know if that's because XSAPI & C# aren't ultra supported at this point, or what, but THANK YOU for the help you're giving us C# folks...
Thursday, June 29, 2017 4:41 AM