Reputation: 3191
I'm building protobufers for windows, using VS2010 using msbuild e.g. only console, no gui interaction. However I'm running into issues when generating the executables. I get the following errors:
(Link target) ->
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
The problem is with incremental linking (/INCREMENTAL). My question is how can I disable that when running msbuild and not by editing the .sln/vcproj file. I tried msbuild /p:incremental=no
to no avail.
Upvotes: 1
Views: 1380
Reputation: 11920
The property that controls it is called LinkIncremental
. E.g.:
msbuild MyProject.vcxproj /p:LinkIncremental=false
Upvotes: 4