Unable to add external .dll in OpenSpan toolbox
I am trying to add an external .dll into my automation project. For my learning I created a .dll (GetName) from a class library project and I am trying to add that in OpenSpan toolbox
Following are the steps that I followed:
1) I created a C# class library project with one public method name GetName(string firstName, string lastName) that returns string as "Full name is firstName + lastName"
I made sure that the class library project is also built on .NET Framework 4.6.1, the same framework in which i am building automation. Code is as attached
2) I build the class library project. Copied the .dll from bin\Debug folder and pasted it to C:\Program Files (x86)\OpenSpan\OpenSpan Plug-in for Microsoft Visual Studio 2015.
3) In my automation project I added a reference by referring to the .NET Component and selected GetName.dll
4) In my openspan project in Toolbox, I added the .dll reference by browsing the .dll
Now I am unable to view the .dll name or corresponding methods in Toolbox.
Please let me know what step I am missing to add this simple custom .dll in my OpenSpan toolbox.
Following is the code for GetName.dll for which I created a class library project with name GetName123
public class GetName
public string GetFullName(string firstName, string lastName)
return "My full name is " + firstName + " " + lastName;
Any help would be appreciated. Please let me know what need to be done so that I can view this custom dll i.e. GetName in my OpenSpan toolbox.
Let me know if you need any additional information from my end.
Thanks & Regards,
Create component project instead of class library and follow the same steps as you explained.
Make class and methods as static members in class library. (didn't try)
Keep up to date on this post and subscribe to comments