C# How to compile ConfuserEx
ConfuserEx is an open-source, free protector for .NET applications. The product itself is great, but the code and internals are even greater – it allows us to learn how it works and study them. So for anyone who is interested in the nitty-gritty, technical aspect of how obfuscators work, ConfuserEx is a great source to learn from.
For programmers who are relatively new, chances are that you will come into problems when trying to compile open-source projects with a larger codebase. This is because these projects (such as ConfuserEx) will rely on various modules and dependencies that you may not have.
How To Compile
First, ensure that you have these installed
- Visual Studio 2017 (Download Here)
- .NET Core 2.1 or later (Download Here)
Second, download the latest ConfuserEx solution from their github
Third, extract it to wherever you want to. After extraction, check to ensure that the
folder is not empty (mine was when I tried). If it is empty, go to ConfuserEx github and download the folder manually (not the entire solution). The folder name should be
dnlib @ <snipped hash>
.Then, copy the dnlib solution into the empty dnlib folder
Fourth, open up the solution file that is named
to build the solution. Hopefully everything goes well and it compiles, if it doesn’t, let me know in the comments below and I will see how I can help you.