I just found this page today when I tried to solve same problem for MSVC 2022 in Win 10, so this is solution for 2025 year
Worked - even for MSVC running in VSCode.