CorfFlags CF011 warning about strong name signed even after / strength

I am trying to use Corflags to run PartCover on x64. When I use:

CorFlags.exe PartCover.exe / 32BIT + / Force

i get: corflags: warning CF011: The specified file has a strong name signed. Using / Force will invalidate the signature of this image and require the assembly to be decommissioned.

without / strength i get:

corflags: error CF012: The specified file has a strong name signed. Use / Force to force the update.

It appears on the internet that others are obfuscating the workarounds with flags without issue ...

+2


source to share


1 answer


I see no problem. When you use / Force, the corflags updates the PE header to be x86 (32 bit), however this invalidates the strong name and therefore you must discard the modified assembly. This is why you see the warning, but I bet corflags changes the assembly.



By not using / Force, corflags tells you that it will not do something that invalidates the assembly unless you explicitly enable it with the / Force argument.

+8


source







All Articles