Can a C# .dll assembly contain an entry point?

后端 未结 3 1531
野趣味
野趣味 2021-02-01 20:41

My goal is to create an executable that will start a shadow copied application. The trick is, I want this starter program to have no external dependencies and not have to conta

3条回答
  •  旧巷少年郎
    2021-02-01 21:18

    You can compile a .NET app as an exe (which is an assembly) and rename it to a .DLL and it will act as a normal .NET .dll assembly. It will then have your Entry point.

提交回复
热议问题