Dotfuscator User's Guide
Entry Points

In .NET, an executable assembly must have a method marked in the metadata as the entry point (typically this method is called Main, but it can have any name.). This is the method that the CLR calls when the assembly is run. In some cases you need to specify an entry point for each linked output assembly. The table below summarizes the rules for entry points.

Inputs Output Entry Point Rule
All are EXEs Is an EXE A user specified entry point is required. The linker will remove all entry points on input assemblies and apply the user specified entry point to the output assembly.
All are DLLs Is an EXE A user specified entry point is required.
Mixed EXEs and DLLs Is an EXE A user specified entry point is required, except if there is only one input exe; in which case the linker will use its entry point. A user specified entry point will override the default.
Anything Is a DLL A user specified entry point is not used. The linker will remove all entry points on inputs.

 

 


© 2016 PreEmptive Solutions, LLC. All Rights Reserved.

www.preemptive.com