Reproduced:
This error occurs when compiling a C + + project with VS2010:
LNK1123: Failure during transition to COFF: invalid or corrupt file
Workaround:
1, search Cvtres.exe under the C-disk, the results are similar to the list:
C:\Program Files\Microsoft Visual Studio 10.0\vc\bin
C:\Windows\winsxs\x86_netfx-cvtres_for_vc_and_vb_b03f5f7f11d50a3a_6.1.7601.17514_none_ba1c770af0b2031b
C:\Windows\Microsoft.NET\Framework\v4.0.30319
2. Back up the Cvtres.exe in the C:\Program Files\Microsoft Visual Studio 10.0\vc\bin Directory First
3, copy the C:\Windows\winsxs\x86_netfx-cvtres_for_vc_and_vb_b03f5f7f11d50a3a_6.1.7601.17514_none_ba1c770af0b2031b directory Cvtres.exe to C:\Program Files\Microsoft Visual Studio 10.0\vc\bin directory, directly overwrite replace.
4, OK, open the test, if not, remember to restore the backup files.
VS2010 LNK1123: Failure during transition to COFF: workaround for invalid or corrupt file