Adding a reference to the NuGet package
You will need to add a reference to the Microsoft.Gaming.XboxGameBar
NuGet package to start adding Game Bar support to your UWP XAML app.
Updating your NuGet packages
Right click your project in solution explorer and select "Manage NuGet packages"
In the upper right corner click the gear icon to bring up NuGet package source settings.
By default nuget.org is listed as a package source. If it has been removed it is necessary to add it.
- To add this requirement click the "+" button in the top corner
- Name the new entry "nuget.org"
- Set the source to https://api.nuget.org/v3/index.json
- Press "OK" to continue
In the NuGet package manager, select the "Browse" tab
Search for "XboxGameBar"
You should see
Microsoft.Gaming.XboxGameBar
in the result list. Select it and click Install.
After installing adding the reference to the XboxGameBar package you are now able to utilize the functionality it provides.