A possible solution is to use some virtual machine to emulate Windows XP and install some legacy VS.
Else try an older VS on Windows 8 or 10 with some older VS or an actual.
But MS has the history to break code, so you may run in some issues when you use newer VS.
Tip: you may use some
compatibility mode settings