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
- Sign your assembly with Authenticode signature and configure to trust the 'publisher'.