.NET Framework 4.5 on Raspberry Pi

Step-by-step instruction to install .NET Framework 4.5 on Raspberry Pi

using ExaGear Desktop

.NET Framework on Raspberry Pi

Some software developers need their ARM devices like Raspberry Pi with .NET Framework software on it for different purposes. And it’s not really easy for realization.

The matter is that Raspberry Pi devices are usually used with Linux-based operating systems like Raspbian or Ubuntu. It’s cool but there are tons of Windows applications which unfortunately haven’t been ported to Linux yet 🙁 So, they can’t be installed on Raspbian either. But using an emulator accompanied by Wine, in some cases, makes the porting and running possible.

Earlier we told you about how to run Windows applications on Raspberry Pi using Wine. Today we will continue that topic and will tell you how to install the modern version of .NET Framework 4.5 on Raspberry Pi and add Dot net compatibility to Wine.

.NET Framework is a software framework developed by Microsoft. It includes a large class library and provides language interoperability (each language can use code written in other languages) across several programming languages. Because of these features .NET is very widespread and a lot of Windows applications use it. Wine has a helper script called winetricks that allows you to install MS Dotnet Framework. But the .NET Framework version 4.5 installation has some tricks. Therefore we’ve prepared a step-by-step instruction.

Raspberry Pi test stand configuration


Raspberry Pi 2 Model B

Raspberry Pi 3


1000 MHz

1200 MHz




Operating System

Raspbian Jessie from May 2016

Raspbian Jessie from May 2016


.NET Framework 4.5

Wine 1.8

Eltechs ExaGear Desktop for Raspberry Pi 2

.NET Framework 4.5

Wine 1.8

Eltechs ExaGear Desktop for Raspberry Pi 3

.NET Framework 4.5 installation instruction

Install ExaGear Desktop

1. Put ExaGear Desktop archive with installation packages and ExaGear Desktop license key in the same folder. Open Terminal (command line), move to this folder and unpack the archive using the following command:

$ tar -xvzpf exagear-desktop-rpi3.tar.gz

2. Install and activate ExaGear by running install-exagear.sh script:

$ sudo ./install-exagear.sh

Launch guest x86 system

3. Enter the guest x86 system using the following command:

$ exagear
Starting the shell in the guest image /opt/exagear/images/debian-8

You’re in x86 environment that can be checked by running the ‘arch’ command:

$ arch

4. It is recommended to update apt-get repositories on the first launch of the guest system:

$ sudo apt-get update

Install Wine

5. Install Wine in Ternimal inside the guest system:

$ sudo apt-get install wine

Package manager will offer you to install a bunch of packages. Agree and start the installation.

Once the installation process is finished check that you have the Eltechs build of Wine installed:

$ wine --version

Install .NET Framework

There is a trick with .NET Framework version 4.5 installation. Please follow the instruction below and go through all the steps in the given order.

6. Install the following tools:

$ sudo apt-get install cabextract
$ wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
$ chmod +x winetricks

On Ubuntu you can install Winetricks using the ‘sudo apt-get install winetricks’ command.

7. Install .NET Framework version 4.0 using winetricks:

$ ./winetricks dotnet40

You will see the Microsoft .NET Framework setup dialog window. Now follow the prompts and start installation. Note that winetricks first installs .NET Framework version 2.0, then version 3.0 and finishes with installation of the version 4.0. Also winetricks checks and uninstalls Mono before installing Microsoft .NET Framework because Microsoft .NET Framework doesn’t work well with Mono in the same Wine environment.

Microsoft .NET Framework installation on Raspberry Pi

8. Configure Wine:

Wine can mimic different Windows versions for each application. For .NET Framework version 4.5 it is requred to set up Windows 7. To do this run winecfg tool from Terminal:

$ winecfg

Then in the “Wine configuration” window select “Windows 7” value from the drop down list of “Windows version” field on the “Applications” tab. Click on “Apply” and then “Ok” buttons.

Wine configuration to install Dotnet Framework 4.5 on Raspberry Pi

9. Download and install .NET Framework version 4.5 on Raspberry Pi using Wine. You can both use this link for downloading or simply input the command in the terminal:

$ wget http://download.microsoft.com/download/b/a/4/ba4a7e71-2906-4b2d-a0e1-80cf16844f5f/dotnetfx45_full_x86_x64.exe
$ wine dotnetfx45_full_x86_x64.exe

Microsoft .Net Framework version 4.5 installation on Raspberry Pi

Follow the promts and get Microsoft .NET Framework installed on your Raspberry Pi:

Install Dot net Framework 4.5 on Raspberry Pi

Final notes

If your application requires a particular version of Microsoft .NET Framework, earlier than version 4.5, you can install the appropriate version (dotnet40, dotnet35, dotnet30, dotnet20, or dotnet11) using just winetricks, as described in step 7 of this instruction. Also it’s worth noting that there is Mono project, an open-source implementation of the .NET Framework and you might want to use it.

Note that you can install and run plenty of compatible with Wine Windows applications on Raspberry Pi with ExaGear Desktop. Here is the Wine Application Database where you can get the information on application compatibility with Wine, as well as tips and trick on Wine configuration for a particular application.

It is worth to note that with ExaGear Desktop you can run practically any x86 app on Raspberry Pi and other ARM-based devices, such as Odroid, Banana Pi, Beagleboard, Cubox, Jetson, Cubieboard etc.

Get my ExaGear Desktop

Also on Eltechs

Run Plex Media Server on Raspberry Pi

Run Plex Media Server on Raspberry Pi

Install PC version of PlexServer on your Raspberry Pi using ExaGear Desktop and get access to your media.

Gaming Beyond RetroPie

Gaming Beyond RetroPie

How to run some iconic PC games like Arcanum, Disciples II and Fallout on Raspberry Pi with Exagear Desktop.

Set Up VPN on Raspberry Pi

Set Up VPN on Raspberry Pi

Set up VPN on Raspberry Pi and encrypt your connection to protect your privacy. Step-by-step instruction on running PIA VPN Service on Raspberry Pi.

Run Netflix via Google Chrome on Raspberry Pi

Run Google Chrome on Raspberry Pi

Step-by-step instruction on running Google Chrome browser and Netflix on Raspberry Pi with the help of ExaGear Desktop.

Run TeamViewer on Raspberry Pi

Run TeamViewer on Raspberry Pi

In this post we will tell you how to run TeamViewer on Raspberry Pi 2 using ExaGear Desktop which allows to run x86 apps on ARM mini PCs.

Run Spotify on Raspberry Pi

Run Spotify on Raspberry Pi

Step-by-step instruction on running Spotify on Raspberry Pi with the help of ExaGear Desktop and getting access to millions of songs.

ExaGear is registered trademark of Eltechs, Inc. Raspberry Pi is a trademark of the Raspberry Pi Foundation. Other trademarks and product names are the property of their respective owners.

  • Bronston

    I’ve tried this repeatedly but I can not get .net to install. 3.0 specifically seems to have an issue. I get a ptrace error level 6 pretty much every time. I’ve matched every detail in this article, all software versions are the same, everything is exactly the same. Any help would be great.