.net famework won't work

Questions about Wine on Linux
Locked
shreeniket987
Level 2
Level 2
Posts: 12
Joined: Mon Dec 21, 2020 5:41 am

.net famework won't work

Post by shreeniket987 »

Hello, I am new to wine. I want to run a .exe file on ubuntu which requires a .net framework. I tried installing it through winecfg but it did not work. I run wine with 64-bit architecture I read online that to install .net I have to have to have a 32-bit system. So can anyone please tell me how I go about changing the system architecture, installing .net and running the exe. Thank you in advance!
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: .net famework won't work

Post by spoon0042 »

What specifically is your wine* and ubuntu version, and do you know for sure what .net version your app needs? That would be relevant information for any advice. And the name of the app would be good. The first thing to try would be wine's builtin mono (free .net implementation) with a recent version of wine.

* to be sure run 'wine --version' or '/path/to/wine --version' in a terminal
shreeniket987
Level 2
Level 2
Posts: 12
Joined: Mon Dec 21, 2020 5:41 am

Re: .net famework won't work

Post by shreeniket987 »

I have wine 5.0.2 and ubuntu 20.4. I need at least .net 4.0 and the exe I am trying to run is actually an installer for a certain software called GeoGebra. Thank you!
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: .net famework won't work

Post by spoon0042 »

5.0.2 should be good. The development version of wine has a known issue with some .net versions so I wanted to avoid any problem there.

Did you try installing / running the app before attempting to get .net? It may work with mono. Either way you should probably create a wineprefix for it -- https://wiki.winehq.org/FAQ#Can_I_store ... 2F.wine.3F

You can create a 32-bit wineprefix if you want, there shouldn't be any issue with 64-bit but just in case -- https://wiki.winehq.org/FAQ#How_do_I_cr ... _system.3F

To install .net you'll want to use winetricks -- https://wiki.winehq.org/Winetricks -- if you created a wineprefix ~/.winegg for it then you would run

Code: Select all

WINEPREFIX=~/.winegg winetricks -q dotnet40
Hopefully this has been helpful. :)
shreeniket987
Level 2
Level 2
Posts: 12
Joined: Mon Dec 21, 2020 5:41 am

Re: .net famework won't work

Post by shreeniket987 »

Thanks, this was very helpful!
Locked