Yea I am using 2022 and making it backwards compatible to compile AppGameKit was a pain, for externals like DX I always setup environment variables and dump them all in a "SDK" folder at the root of my c which is also backed up on external drive so when the inevitable system restore is required I only have to setup a handful of environment vars and everything works again.
I also do this for the "template" app, I hate the way the apps have static paths in the Tier2 folder, make a var "AGK_SDK" and link them all to that I can dunp T2 projects where ever I want
when it comes to includes and external library's.... Visual Studio will test your patience thats for sure!