大会之间和DLL差异差异、大会、DLL

2023-09-02 01:54:45 作者:掀起你的头盖骨i

大会和DLL之间的区别是什么?在发送code键远程客户端,应一个DLL文件发送或应该一大会被发送(当直接TCP连接可用两者之间)?

What is the difference between Assembly and a DLL? While sending the code to a remote client, should a DLL file be sent or should a Assembly be sent (When direct TCP connection is available between two)?

推荐答案

程序集是.NET的部署的最小单位。一般的组件对应于单个文件,但它不必 - 你可以有多个文件,其中有一种是这知道所有其他位是主

An assembly is .NET's "minimum unit of deployment". Usually an assembly corresponds to a single file, but it doesn't have to - you can have multiple files, with one of them being the master which knows where all the other bits are.

单文件程序集通常是DLL或EXE文件。如果你有一个正常的类库,你只是想将它发送给对方,该DLL是你想要的。我只担心更复杂的场景,当你碰到他们:)

Single-file assemblies are usually DLLs or EXE files. If you've got a normal class library and you just want to send it to the other side, the DLL is what you want. I'd only worry about more complicated scenarios as and when you run into them :)