Building ILSpy from Source on Kali Linux: Complete Tutorial
Video Tutorial
Prerequisites
Before you begin, ensure you have the following installed:
- .NET 8.0 SDK (Installation Guide)
- PowerShell (formerly known as PowerShell Core) (Installation Guide)
Steps to Build ILSpy
Step 1: Clone the Repository
Clone the ILSpy repository using git with a depth of 1 to save bandwidth and time:
1
git clone --depth 1 https://github.com/icsharpcode/ILSpy
Note: Using
--depth 1
clones only the latest commit, which is useful for saving bandwidth and time when you don’t need the full history.
Step 2: Download Submodules
Execute the following command to download the ILSpy-Tests submodule, which is used by some test cases:
1
git submodule update --init --recursive
Step 3: Build ILSpy
Use the following command to build the non-Windows flavors of ILSpy (.NET Core Global Tool and PowerShell Core):
1
dotnet build ILSpy.XPlat.slnf
Note: Make sure you are in the root directory of the cloned repository when executing these commands.
Example Output
After running the build command, you should see an output similar to the following if everything is successful:
1
2
3
4
5
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:01:42.41
You may also see additional information about restored packages and created files. As long as you see Build succeeded and 0 Error(s) at the end, the build was successful.
Additional Information
For more details, refer to the official ILSpy GitHub repository.