I had accidently clicked upgrade and mixed Platform Toolset between a static dependency (v143 in my case) and the main executable (v142 in my case)
Aligning them back to v142 fixed it. I might have been able to upgrade to v143 too
Right click on projects -> Configuration to bring up this menu