Search code examples
c#native-code

Can I compile C# DLL to native Code


I have a C# Desktop app.

I load a C# DLL into this app via reflection methods.

Is there a way to compile this DLL into native code?

The ultimate aim is to protect my DLL the best way I can. I know it will not be 100% proof but I just want to not make it easy to do so.

Thanks


Solution

  • Obfuscation is what you might be looking for. Please take a look at following links to arrive at a basic idea from your end, if Obfuscation meet your requirement.

    .NET obfuscation tools/strategy

    http://en.wikipedia.org/wiki/Obfuscation_(software)

    http://msdn.microsoft.com/en-us/magazine/cc164058.aspx