Suppression State Error LNK2038 mismatch detected for '_MSC_VER':
value '1800' doesn't match value '1900' in GoogleTest.obj Test
I wonder if your project is migrated from other old VS version into VS2019.
1) If so, first,you should delete the old gmock library path which you used before under Include Directories(Right-click on project-->Properties
-->VC++ Directories
), Additional Include Directories(Properties
-->C/C++
-->General
), Additional Dependencies(Properties-->Linker
-->Input
).
2) Second, install the nuget package gmock 1.10.0 by Right-click on your project-->Manage Nuget Package--> search gmock 1.10.0 and install it.

3) Right-click on your project-->Properties
-->Configuration Properties
-->General
-->make sure Toolset Plarform is VS2019 v142
.
4) close VS Instance, enter your project location and delete any Debug
and Release
folder and then restart your project and build again.
In addition, or you can try to create a new c++ project in VS2019 , install the latest gmock
nuget package in your new project and then migrate your old project into the new project and test again.