Closed lukesoldano closed 1 year ago
So after doing some poking around I managed to find some vsix installers for VS2017 in the gdrx directory of my GDK install path and ran those. With that and adding a linker path for msvcrt.dll I was able to successfully build. Not sure why that didn't work with the default install, but apologize for the errant ticket.
Hey All,
I am trying to build this project for C# (without Unity integration) per instructions given by Microsoft at: https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/get-started-with-pc-dev/get-started-with-custom-engine/gc-get-started-with-custom-engine-pc-csharp
I have installed VS2017 with (I believe) all necessary dependencies. I am able to build TestGame and XGamingRuntime after removing code within TestGame (earnAchievementButton_Click references a function with an argument count mismatch) and after commenting out "using Unity" per the linked instructions above.
I am never able to build the thunks project as I always get the error:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.Cpp.InvalidPlatform.Targets(21,7) error MSB8006: The Platform for project 'XGamingRuntimeThunks.vcxproj' is invalid. Platform='Gaming.Desktop.x64'. This error may also appear..." yadda yadda
Is something missing from my environment that would enable this platform? I have already previously installed GDK and the given Microsoft instructions don't add any other dependencies so I am at a loss. Any help would greatly be appreciated!