ERROR: Visual Studio 2017 must be installed in order to build this target.

You can also set:
Edit → Project Settings → Platforms → Windows → Visual Studio 2022
but that doesn’t fix the problem.

2 Likes