Error C4668: 'WINAPI_PARTITION_GAMES' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'

In VS2019 I just selected all of the SDK Win 10 packages and installed them + the Nuget packs too and now it’s building without any errors.

I hope this will help others too!

2 Likes