How to execute an application using only its DLL ? C#. [closed]
I build a solution to a dll file , and now I am trying to run the application by another project after adding开发者_C百科 the dll to the project. Is there a simple way of doing that?
Update
It is originally a Windows form application , but was build as a class library in order to user it from another project. I want to have the same effect from the other project just as using its exe, but using my other project.
Is there a way of calling Main of the dll program?
Reference the DLL or project in your other project and run what ever you want to run from it.
In order to answer this definitively we would need to know what your DLL contains. But supposing that it contains a Program
class with a Main()
method, you can run your program by calling Program.Main()
.
精彩评论