开发者

How to execute an application using only its DLL ? C#. [closed]

开发者 https://www.devze.com 2023-03-23 19:20 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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().

0

精彩评论

暂无评论...
验证码 换一张
取 消