This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / Use C# to create library, it can be DLL or EXE. What's the difference?
-tonyhao(tonyhao);
2009-2-17
(#5055499@0)
-
Are you sure you can create EXE library?
-deep_blue(BLUE);
2009-2-18
(#5056384@0)
-
隐约有这种印象. 如果不是library, 就应该是assembly
-tonyhao(tonyhao);
2009-2-18
(#5056390@0)
-
要不就是C++里的. 好像有一次面试, 人家问我的.
-tonyhao(tonyhao);
2009-2-18
(#5056391@0)
-
Library在通常意义上是DLL(可以是SERVER MODEL, 也可以是LIBRARY MODEL). EXE是运行在自身的PROCESS里面. 应该不叫LIBRARY. LIBRARY是要运行在CALLER的PROCESS里面的.
-whereismyid(到处找ID);
2009-2-18
(#5056401@0)
-
in .net 1.0 and 1.1, EXE is process library (executable) and DLL is class library. in .net 2.0 and above, DLL and EXE can work in the same way in terms of class library. see the first paragraph of wiki article.
-anthonylo2008(anthonylo);
2009-2-18
(#5056414@0)
-
Can you directly create an .exe library assembly by any tool (I mean not manually change extension from .dll to .exe)?
-deep_blue(BLUE);
2009-2-18
(#5056600@0)
-
Sorry, I have no expertise/experience on that. But I wonder why you would need to do so. If you are going to create a class library, why not just simply create a DLL?
-anthonylo2008(anthonylo);
2009-2-18
(#5056843@0)
-
I just tried it. Actually you can create any EXE projects (console or Windows form) and the generated EXE can serve all its public classes or types exactly the same way as a DLL does.The conclusion: the EXE has no difference than the DLL except it has entry point to be able to get executed.
-anthonylo2008(anthonylo);
2009-2-18
{108}
(#5056885@0)
-
It looks you are right. Since FW 2.0, .NET totally blurs differences between libraries and processes.
-deep_blue(BLUE);
2009-2-18
(#5057110@0)