CorfFlags warning CF011 about strong name signed even after /force

試著忘記壹切 提交于 2019-12-11 02:27:46

问题


Im trying to use Corflags to get PartCover running under x64. When I use:

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

i get: corflags : warning CF011 : The specified file is strong name signed. Using /Force will invalidate the signature of this image and will require the assembly tobe resigned.

without /force i get:

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

On web there appears that others are runnig partcover throught corflags with no problems...


回答1:


I don't see the problem. When you use /Force corflags is updating the PE header so that the assembly is x86 (32 bit), however this does invalidate the strong naming and thus you must resign the altered assembly. That is why you are seeing the warning, but I would bet that corflags is altering the assembly.

By not using /Force then corflags is telling you it won't do something that will invalidate the assembly without you explicitly giving it permission to with the /Force arguement.



来源:https://stackoverflow.com/questions/1525857/corfflags-warning-cf011-about-strong-name-signed-even-after-force

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!