microsoft / gdk-unity-package

The Unity package for PC GDK developers.
Other
51 stars 18 forks source link

TestGame doesn't compile build #118

Open stevenh opened 1 year ago

stevenh commented 1 year ago

The TestGame project doesn't compile build when following the instructions detailed here.

There are three errors after building XGamingRuntimeThunks and XGamingRuntime.

Severity    Code    Description Project File    Line    Suppression State
Error   CS0103  The name 'defaultQueue' does not exist in the current context   XGamingRuntime  C:\Working\code\gdk-unity-package\Package\Assets\GDK-APIs\Runtime\Source\XBL\Achievements\XblAchievements.cs    58  Active
Severity    Code    Description Project File    Line    Suppression State
Error   CS0117  'SDK' does not contain a definition for 'XTaskQueueDispatch'    TestGame    C:\Working\code\gdk-unity-package\Tools\XGamingRuntimeSDK\TestGame\XboxLiveForm.cs  107 Active
Severity    Code    Description Project File    Line    Suppression State
Error   CS1501  No overload for method 'XblAchievementsUpdateAchievementAsync' takes 7 arguments    TestGame    C:\Working\code\gdk-unity-package\Tools\XGamingRuntimeSDK\TestGame\XboxLiveForm.cs  188 Active
stevenh commented 1 year ago

Seems the first two are just visual with Visual Studio 2019 / 2022 not understanding the code properly when files are open in editor.

The only real failure is the incorrect parameters to XblAchievementsUpdateAchievementAsync.