{
  // See https://go.microsoft.com//fwlink//?linkid=834763 for more information about this file.
  "environments": [
    {
      "BuildDir": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\build"
    }
  ],
  "configurations": [
    {
      "name": "x64-Debug",
      "generator": "Visual Studio 16 2019 Win64",
      "configurationType": "Debug",
      "buildRoot": "${env.BuildDir}\\${name}",
      "cmakeCommandArgs": "-DCMAKE_BUILD_TYPE=\"Debug\"",
      "buildCommandArgs": "-m -v:minimal",
      "inheritEnvironments": [
        "msvc_x64"
      ]
    },
    {
      "name": "x64-Release",
      "generator": "Visual Studio 16 2019 Win64",
      "configurationType": "Release",
      "buildRoot": "${env.BuildDir}\\${name}",
      "cmakeCommandArgs": "-DCMAKE_BUILD_TYPE=\"RelWithDebInfo\"",
      "buildCommandArgs": "-m -v:minimal",
      "inheritEnvironments": [
        "msvc_x64"
      ]
    }
  ]
}

{
  // See https://go.microsoft.com//fwlink//?linkid=834763 for more information about this file.
  "environments": [
    {
      "BuildDir": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\build"
    }
  ],
  "configurations": [
    {
      "name": "x64-Debug",
      "generator": "Visual Studio 17 2022",
      "configurationType": "Debug",
      "buildRoot": "${env.BuildDir}\\${name}",
      "cmakeCommandArgs": "-DCMAKE_BUILD_TYPE=\"Debug\"",
      "buildCommandArgs": "-m -v:minimal",
      "inheritEnvironments": [
        "msvc_x64"
      ]
    },
    {
      "name": "x64-Release",
      "generator": "Visual Studio 17 2022",
      "configurationType": "Release",
      "buildRoot": "${env.BuildDir}\\${name}",
      "cmakeCommandArgs": "-DCMAKE_BUILD_TYPE=\"RelWithDebInfo\"",
      "buildCommandArgs": "-m -v:minimal",
      "inheritEnvironments": [
        "msvc_x64"
      ]
    }
  ]
}

Change generator parameter to Visual Studio 17 2022
Change generator parameter to Visual Studio 17 2022