-
Notifications
You must be signed in to change notification settings - Fork 1
Compiling de4dot
This requires git and is recommended since you will always have the latest source code when you pull in the latest changes.
git clone https://github.com/0xd4d/de4dot.git
cd de4dot
sed -i 's!git@github\.com:0xd4d/dnlib\.git!https://github.com/0xd4d/dnlib.git!' .gitmodules
git submodule init
git submodule update
If you don't want to use git or can't install it for some reason, you can download the source code. Download de4dot's source code and the latest dnlib code. Extract dnlib code to a dnlib sub directory inside the de4dot source directory.
In the de4dot root dir:
sn -k de4dot.snk
sn.exe is part of the Windows SDK (or .NET SDK).
You'll also need to update the public key in a few InternalsVisibleTo attributes, eg. in de4dot.cui/Properties/AssemblyInfo.cs. Here's how to get your public key from the de4dot.snk strong name key file you created earlier:
sn -p de4dot.snk de4dot.pub
sn -tp de4dot.pub
The longest key it shows (on multiple lines) is your public key.
Use VS2008 or VS2010. If you use VS2008, you must update the VS version number at the top of the .sln file from 11.00 to 10.00. To debug it with VS2008, remove <supportedRuntime version="v4.0"/> from all App.config files.