CAD+ Toolset | Utilities for SOLIDWORKS automation
SOLIDWORKS utilities for improving your productivity in SOLIDWORKS. Automate properties, geometry, export and much more

Demo Download Buy

Signing CAD++ .NET assemblies (DLLs)


To sign user modules and xCAD .NET assemblies, you need to strong-name the assembly and sign the DLL with a code signing certificate.

Strong Name Assembly

Generate a strong name key using the sn.exe tool

sn.exe -k "key.snk"

Enable automatic assembly signing by modifying the project files .csproj or .vbproj file

<PropertyGroup>
    <SignAssembly>True</SignAssembly>
    <AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

Keep the generated key in a secure place to prevent it from leaking

Code Signing

Purchase a code signing certificate from a trusted authority.

Although a trusted code signing certificate is preferable, a self-signed certificate is also supported.

Use the sign.exe tool to sign the DLL:

An example command line is shown below; replace the arguments with those applicable to your DLL.

sign /tr "http://timestamp.sectigo.com" /td sha256 /fd sha256 /sha1 "c47240a42d0f9d574e9ebdf65def9ce380f7c6c2" /d "Sample CAD++ module" /du "https://cadplus.xarial.com" "C:\Dev\MyModule1.dll"

Product of Xarial Product of Xarial