error MSB4019: "C:Microsoft.Cpp.Default.props" was not found, when building with MSBuild

  build, c++, msbuild, teamcity, visual-studio-2019

I’m building an Unreal project through TeamCity and my msbuild step is failing with the following error:

error MSB4019: The imported project "C:Microsoft.Cpp.Default.props" was not found. Confirm that the expression in the Import declaration "Microsoft.Cpp.Default.props" is correct, and that the file exists on disk.

I have VS 2019 installed and VCTargetsPath set to:

C:Program Files (x86)MSBuildMicrosoft.Cppv4.0v140

I can confirm that the file does exist in the link above.

Source: Windows Questions C++