Difference between .dll and .exe?

后端 未结 15 1199
有刺的猬
有刺的猬 2020-12-02 04:23

I want to know the exact difference between the dll and exe file.

15条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-02 05:12

    For those looking a concise answer,

    • If an assembly is compiled as a class library and provides types for other assemblies to use, then it has the ifle extension .dll (dynamic link library), and it cannot be executed standalone.

    • Likewise, if an assembly is compiled as an application, then it has the file extension .exe (executable) and can be executed standalone. Before .NET Core 3.0, console apps were compiled to .dll fles and had to be executed by the dotnet run command or a host executable. - Source

提交回复
热议问题