I made a mistake of updating my installation of Visual Studio 2022 and now none of my C++ projects build. The funny part is that even a standard C++ console project that one can create in VS2022 doesn’t build right after creation with the following errors:
15:26:51:680 Build started at 3:26 PM...
15:26:51:728 1>------ Build started: Project: TestVS2022-1, Configuration: Debug x64 ------
15:26:51:899 1>LINK : fatal error LNK1104: cannot open file 'msvcprtd.lib'
15:26:51:899 1>Done building project "TestVS2022-1.vcxproj" -- FAILED.
15:26:51:905 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
15:26:51:905 ========== Build completed at 3:26 PM and took 00.244 seconds ==========
There is something that is seriously wrong with MSFT for doing this.
Any idea how to solve it?
PS. There’s a ton of diverging answers for this specific error message but none of them seem to apply to what I see in VS2022.
9