Ask Niang, the great God gives the solution:
VS2010 After some updates, the Win32 Console project will be "error LNK1123" errors when the solution is:
The Project | Project Properties | Configuration Properties | Inventory Tool | INPUT and OUTPUT | The Embed list is changed to "no", but it is set once for each new project.
If "Error LNK1123" errors are still occurring according to the solution above, the solution is as follows:
Search in your computer to see if there are multiple cvtres.exe.
such as:
One is C:\Program Files (x86) \microsoft Visual Studio 10.0\vc\bin\cvtres.exe
One is C:\Windows\Microsoft.NET\Framework\v4.0.30319\cvtres.exe.
Right-click Properties | Details to view both version numbers, delete/rename older versions, or reset the path variable.
Note: This method is a permanent solution, after removing the old version of Cvtres.exe, you do not need to set the configuration every time.
VS2010 link:fatal Error LNK1123: Failed during transition to COFF: (CC)