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

后端 未结 3 1490
野趣味
野趣味 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 20:56

    Short answer is no. a .DLL file is a dynamically linked library which is code called by another library. I guess what Keith said would technically work.. you could probably rename it to what ever you want even .txt or .pdf as long as you start the application in the proper manner. The main question I have is this; What are you trying to do?? Unless you're trying to write malware why would you want to do this? Not that I condone the writing of malware for bad purposes but I know people like to experiment in their own lab so I for one don't condemn it. If you're writing malware something like c++, c or assembler might be a better bet I guess C# could get the job done but meh...

提交回复
热议问题