Home > Net >  Test dotnet dll for entrypoint
Test dotnet dll for entrypoint

Time:09-21

I have a script I'm building, and need to quickly test if a dotnet dll has an entrypoint. I know this can be done via reflection, but I'm wondering if there is a lightweight way of determining that externally?

So kind of dotnet MaybeALibrararyOrExecutable.dll, but without actually running it, if that makes sense.

Does this exist?

CodePudding user response:

You could check if there is a _CorExeMain string in the DLL.

On Windows - findstr /c:"_CorExeMain" .\filename.dll

  • Related