- UID
- 5280
- 积分
- 9466
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-5-18
- 最后登录
- 1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
Can I sign my .NET assembly with a strong name?
问题:
I am trying to create a strong name for my assembly, but it raises the following error message: "Referenced assembly 'acmgd' does not have a strong name". Is there any way to solve this?
解答:
Unfortunatelly, we do not provide strong named versions of AutoCAD .NET assemblies. There are some reasons for this:
- A strongly named assembly adheres to a stricter versioning policy: patching the dll is trickier;
- A strongly named assembly must be installed into the GAC to avoid the performance hit related to extra validation. The GAC itself further complicates deployment.
By the way, we signed our dlls in AutoCAD 2005 and we got rid of the signatures because of the complications.
Thus, your assembly cannot have a strong name if it depends on AutoCAD assemblies.
However there are workarounds available:
- Instead of setting security policy for file you can set it for entire folder:
CasPol.exe -m -ag 1.2 -url "\\YourNetworkDrive\Path\*" FullTrust -name MYNAME
or
- Sign your assembly with Authenticode signature and configure to trust the 'publisher'.
|
|