How Can I Protect My C# Code From Being Decompiled?

Matt picture Matt · Sep 6, 2011 · Viewed 8.3k times · Source

Possible Duplicate:
.Net Obfuscation
Alternative for Obfuscation in the .NET world

Just a few minutes ago, I read that there are a number of tools, many free, that allow you to convert a C# .exe back to a VB solution. This means that my proprietary code can be viewed, edited, and recompiled/redistributed. Is there a way to prevent this?

Answer

Mark Hall picture Mark Hall · Sep 6, 2011

In short you need to use Obfuscation. To name a few.

  1. Dotfuscator
  2. Obfuscator
  3. Skater (Freeware)
  4. DeployLX CodeVeil
  5. Plus Visual Studio comes with a light version of Dotfuscator.

You can read this MSDN article that has advice on how to obfuscate your code.