Friday, November 8, 2013

Compiling de4d0t

There are a few steps you need to do in order to compile de4d0t from source. The tools you will need are:

Start by cloning the repository. Open a Git Bash and input the following commands:

git clone
cd de4dot/
git submodule init
Don't close git bash. Edit the .git/config file to change the last line

url =

url =
unless you do have an account in bitbucket and you have configures git to automatically load your public key.
Back to the git bash and post the following:
git submodule update
This should clone dnlib right in the dnlib folder. You can close git bash now.
Open a visual studio command prompt and head to the cloned repository's root folder. Create a signing key using the following commands:
sn -k de4dot.snk
sn -tp de4dot.public
The last command will output the public key of your newly generated certificate. Copy that and remove the new lines. Open the solution and hit Ctrl + Shift + H to open the Find and Replace dialog. Replace all occurrences of
with the new public key you just got.
Make sure you select "Entire Solution" in the Look in field.

At the moment there are only 2 references of this key inside the assembly info of de4dot.cui project but better be safe than sorry.
You should now be able to build de4dot and get the executable inside the Debug folder in the root of the repository.


Julfo said...

Very useful indeed - thank you. said...

cool thanks!
are you available as a contractor?
if sp then please email me.