I’m testing out Eziriz .NET Reactor to protect a software, developed using Visual Studio 2010 C# WPF.
I am confused when the .NET Reactor ask to which assembly to protect. I though it supposed to protect the .msi file where user will be installing. But it asks me to upload an assembly file which is an .exe. So I upload the .exe in my bin/Debug folder which is generated by building the solution in Visual Studio.
After running the protection on .NET Reactor, I open the same .exe file with .NET Reflector, and I can still see all the classes and methods. Nothing is being protected at all.
I have read through the documentation – is it just not working or am I doing something wrong?
Visual Studio usually rebuilds the entire project when making a setup. Hence your protected exe (that you generated .NET Reactor) will be overwritten by Visual Studio.
You should add a Post-build event (which is found in Visual studio Project properties) which calls .NET reactor to protect the DLL directly after it has been built.
Do note that the event should only run for release build, or you’ll not bee able to debug your application. The problem is that you can’t add a post build event for release mode only. The solution is to do a check like this: How to run Visual Studio post-build events for debug build only