I’ve developed my dll thorough C# and I would like to sign my dll file. I used to sign my C++ library, however I couldn’t find a guide about how to sign a C# library. So I started to sign C# library like I signed C++ library. Please, correct me, if I do incorrectJ.
What I do:
1. Copy in a folder files such as
And I see the error:
Checking for the presence of DotNet Author License
System.DllNotFoundException: Couldn’t load DLL “libuginit”: A required module is not found(Exception from result: 0x8007007E)
in SignLibrary.main(String args)
I do not why I’ve got such an exception cause I’ve copied an “libuginit.dll” from UGS_NX9\UGII to D:\Libraries\.
Guys, how to solve this exception? Any help would be greatly appreciated. I cannot find a guide about signing (NX Open Programmer’s Guide->License Checking)
The process is not that difficult and is clearly documented in the NX Open Programmers Guide:
Just make sure you are executing SignDotNet.exe in a NX Command Prompt (i.e. an environment that has the NX env variables, particularly %UGII_BASE_DIR% and %UGII_ROOT_DIR% defined correctly.
If NXSsigningResource.res is embedded properly and if the envronment is defined correctly, SignDotNet.exe should be able to find everything it needs. No additional files need to be copied.
Make sure to run the command script inside of a NX command prompt or add %UGII_ROOT_DIR% to the PATH variable.
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk Testing: NX12.0
How to Get the Most from Your Signature in the Community
These file are my script files *.bat for sign and verify the dll. Simply drag and drop the dll to *.bat
With a little effort could you modify the registry to sign with RMB like this:
I use the post action in Visual Studio.
After signing I also copy the dll to the target dir and there I can test it.
See attached image.