dnSpy Download from GitHub: Getting the Right Build Safely

Where to get a genuine dnSpy download on GitHub, which release asset to pick, how to verify it and how to avoid fake mirrors.

Releases page listing dnSpy net-win32, net-win64 and netframework zip assets

Searching for a dnSpy download turns up a surprising number of results: the original repository, a community fork, mirror sites, “portable” bundles, YouTube links and even installers that claim to be dnSpy. Only a small part of that list is trustworthy. This guide walks through where genuine copies come from, which file to choose once you are on GitHub, and how to check what you downloaded before you run a single executable inside it.

Why GitHub is the only source that matters

dnSpy has always been distributed through GitHub. Its author, 0xd4d, published the source code and the release packages in the dnSpy/dnSpy repository, and there has never been an official website, installer or app store listing. That makes the decision simple: if a copy does not trace back to GitHub, treat it as untrusted.

Two repositories are relevant today:

  • github.com/dnSpy/dnSpy is the original project. It was archived in late 2020, which means it is read-only: the code and releases remain available, but nothing new is added. Its last release is version 6.1.8.
  • github.com/dnSpyEx/dnSpy is the community-maintained continuation. Because dnSpy is licensed under GPLv3, contributors were free to fork it, and dnSpyEx has since fixed bugs, improved the debugger and added support for newer .NET runtimes.

Neither choice is wrong. The original 6.1.8 build is stable and well understood. dnSpyEx is the better choice if you work with recent .NET versions or want fixes for issues reported after 2020.

Source archive or prebuilt release?

A GitHub repository offers two very different kinds of download, and mixing them up is the most common source of confusion.

The source archive

The green Code button and links such as archive/refs/heads/master.zip give you a snapshot of the repository’s source code. This is the link used by the download button on this site. It is the right file if you want to read the code, build dnSpy yourself, study how the decompiler and debugger fit together, or keep an exact copy of the project’s history. It does not contain a ready-to-run dnSpy.exe; you need the .NET SDK and a build step to produce one.

The release packages

The Releases page of each repository lists compiled packages attached to a version tag. For dnSpy 6.1.8 these are:

AssetWhat it isChoose it when
dnSpy-net-win64.zip64-bit build with the .NET runtime bundledYou have 64-bit Windows and want the simplest setup
dnSpy-net-win32.zip32-bit build with the runtime bundledYou run 32-bit Windows or mainly debug 32-bit programs
dnSpy-netframework.zipBuild that runs on the installed .NET FrameworkYou want a smaller download and already have .NET Framework 4.7.2 or later

dnSpyEx follows a similar naming scheme for its releases. Asset names can change between versions, so read the release notes of the tag you pick rather than relying on a file name you saw in an old tutorial.

Step by step: downloading from the releases page

  1. Open the repository you have chosen and click Releases in the right-hand column. The newest release is marked Latest.
  2. Read the release notes. They mention new requirements, known problems and which packages are included.
  3. Expand the Assets list and click the zip that matches your system. Ignore the two “Source code” entries unless you plan to build from source.
  4. Save the file to your Downloads folder. Do not extract it yet.
  5. Verify the archive, as described in the next section.
  6. Unblock it in the file properties dialog and extract it to a folder such as C:\Tools\dnSpy. The Windows setup guide covers this part in detail.

Verifying what you downloaded

Downloading from GitHub already removes most of the risk, but a few habits make sure the file on your disk is the one you intended to get.

Check the URL, not just the page design

Fake download pages often copy GitHub’s layout. Look at the address bar: the domain must be github.com, and the path must start with /dnSpy/dnSpy or /dnSpyEx/dnSpy. Repositories with similar names owned by unknown accounts are a known trick. A star count, a recent commit date or a polished README proves nothing on its own.

Record a hash

PowerShell can calculate a SHA-256 hash of any file:

Get-FileHash .\dnSpy-net-win64.zip -Algorithm SHA256

Write the value down. If a colleague downloaded the same release earlier, compare the hashes. If you keep the zip in an internal tools share, store the hash next to it so later copies can be checked. Matching hashes mean the files are byte-for-byte identical.

Look inside before you run

A genuine package contains dnSpy.exe, configuration files, a bin folder full of DLLs, and licence files. It does not contain an installer, a setup.exe, a batch file asking for administrator rights, or a password-protected archive. Any of those is a strong signal to delete the download.

Remember: dnSpy has never been distributed as an installer. A “dnSpy Setup” file, a “dnSpy Pro” edition or a download that asks you to disable your antivirus first is not the real project.

Why fake dnSpy downloads exist

Tools used by developers and reverse engineers are attractive bait. The people who download them often run them with elevated rights, have access to source code and credentials, and are used to security warnings from debugging tools. In 2022, security researchers documented a campaign that promoted a malicious dnSpy build through look-alike websites and search advertising; the trojanised copy installed additional malware alongside a working decompiler, so victims had little reason to suspect anything.

The lesson is not to fear dnSpy but to be strict about provenance. The real tool is open-source and widely inspected. A modified copy can look and behave identically while doing something else in the background.

Antivirus warnings on genuine copies

Even a genuine dnSpy package occasionally triggers an antivirus alert. The software can attach to processes, read and write their memory, and modify executables, which are behaviours that heuristic scanners associate with malicious tools. Detections usually name a generic heuristic rather than a specific malware family.

If your scanner flags a file you downloaded directly from one of the two repositories, compare its hash with a known-good copy, upload the hash (not necessarily the file) to a multi-engine scanning service to see how many engines agree, and check the repository’s issue tracker for reports about the same release. In a corporate environment, ask your security team to approve the tool rather than switching protection off.

Building dnSpy from the source archive

If you downloaded master.zip and want a runnable copy, you will need a matching .NET SDK and, for the full WPF build, Windows. The repository’s README explains the exact command; in the original project it is a build script that produces the different packages. Building yourself has two benefits: you know precisely which code went into the binary, and you can apply your own patches. The drawback is time, plus the need to install the specific SDK versions the project targets, which for the archived repository are no longer the newest ones.

For most people, the release packages are the practical choice. The source archive is valuable for auditing, learning and long-term archiving.

Keeping your copy up to date

Because dnSpy is portable, updating simply means extracting the new release into a fresh folder and deleting the old one when you are satisfied. Settings live in your user profile, so they survive the switch. A few tips:

  • Watch the dnSpyEx repository on GitHub with the “Releases only” option to receive a notification when a new version is published.
  • Keep the previous version for a while. If a new build behaves differently with a particular assembly, you can compare.
  • Do not mix files from different releases in one folder. The DLLs in bin belong together.

Frequently asked download questions

Is the master.zip file enough to use dnSpy?

It contains the full source code but no compiled program. Use it to build dnSpy or to study the code; use a release package to run it right away.

Which version should a beginner choose?

On a 64-bit Windows PC, the self-contained 64-bit package is the easiest because it needs no separate runtime. Add the 32-bit launcher later if you have to debug x86 programs; the 32-bit vs 64-bit guide explains when.

Can I download dnSpy from the Microsoft Store or winget?

There is no official Store listing. Community package managers may offer entries that point to GitHub releases, but you should still confirm where the package actually downloads from before trusting it.

Are older versions still available?

Yes. Every tagged release remains on the original repository’s releases page, which is useful if you need to reproduce an older behaviour.

Summary

A safe dnSpy download comes from one of two GitHub repositories, uses a release asset that matches your system, and is checked before it runs. Choose the original 6.1.8 build for stability or dnSpyEx for current .NET support, keep a hash of what you downloaded, and never accept an installer or a “premium” edition. With those habits in place, getting dnSpy takes a couple of minutes and carries no surprises.