Well, I just created a new Win11 23H2 (VirtualBox) VM, with a fresh VS 2022 (17.11.4) installation, and I could compile the viewer just fine on it... So, that's an issue on your side, I'm afraid.
Instead, use the
Visual Studio setup utility (Community) to install VS 2022 on an existing or new Win11 VM, or on a bare-metal Win11 PC.
v17.10.4 is too old, and my
guess is that your pre-installed VM got too old a Windows SDK, that did not get updated during the upgrade to 17.11.4.
Please, proceed as explained in linden/doc/WindowsBuildHowto.txt... It is best to install from the upstream official packages, for you will have the choice of what to install, where, and with what permissions (e.g. cmake and Python can be installed system-wide, which is best, or only for one user).
There
could also be an issue with cmake not getting installed properly via winget and failing to find VS 2022 tools for cmake (that must be installed too, as specified in WindowsBuildHowto.txt).
Exactly... Avoid "winget" for anything non-Micro$oft !!!
I indeed got this error too, with the fresh install (not getting it on my usual build VM), and unlike you, Edge did nothing to "fix" it.
Instead, I changed linden/scripts/install.py to ignore certificates: add
import ssl along the other imports at the start of the script, then edit line 160 to read:
This change will be part of next release.