How to install a .NET DLL add-in
Because you are working with both .NET and COM in your .NET add-in, you must register the add-in using regasm.exe. The regasm tool registers a .NET object with COM so that a COM application, such as SolidWorks, can connect to the object.
If your add-in is not installed in the same directory as SolidWorks, you must specify the codebase option when registering the object:
regasm.exe YourDotNetDLL.dll /codebase