【发布时间】:2018-11-24 13:19:05
【问题描述】:
我在我的项目中添加了构建后命令行:
"%ProgramFiles(x86)%\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\gacutil.exe" /if "$(TargetFileName)"
但我得到了错误:
The command exited with the code 1.
在输出中:
Failure adding assembly to the cache: Attempt to install an assembly without а strong name
我该如何解决这个问题?
【问题讨论】:
-
GAC 中的程序集必须具有强名称。
-
要么签名要么不安装在 GAC 中
-
如何从 GAC 中删除旧程序集或对其进行签名?
-
复制?
-
是的,我在 GAC 中有同名的旧程序集。怎么删除?