Microsoft .NET Question

Questions about Wine on macOS.
Locked
btorres
Level 1
Level 1
Posts: 6
Joined: Sat Jun 13, 2015 10:43 am

Microsoft .NET Question

Post by btorres »

I have the Steam app for Windows running through Wine. I've gotten other games to work with Wine from my Wine-run Steam. My problem is that I want to run a Steam game called Depth. After successfully installing everything required to run Depth, I came across an error message reading, "To run this application, you first must install one of the following versions of the .NET Framework: v4.0.30319. Contact your application publisher for instructions about obtaining the appropriate version of the .NET Framework." After receiving this error message, I successfully download .NET 4.0.30319 using Winetricks. However, when I tried to run Depth again, I got the same exact error message. Why isn't Depth reading that I downloaded the proper version of .NET? What can I do? Please help!
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Microsoft .NET Question

Post by dimesio »

Are you sure you installed .NET to the same wineprefix where Steam is installed?
btorres
Level 1
Level 1
Posts: 6
Joined: Sat Jun 13, 2015 10:43 am

Re: Microsoft .NET Question

Post by btorres »

That's a really good point; they might not be under the same prefix. Could you show me how to change the prefixes though? I mean, I know there's a Change Prefix option, but how can I tell which prefix a certain app is under (specifically in this case, .NET and Steam)?
btorres
Level 1
Level 1
Posts: 6
Joined: Sat Jun 13, 2015 10:43 am

Re: Microsoft .NET Question

Post by btorres »

How do I check which prefix each app is associated with?
btorres
Level 1
Level 1
Posts: 6
Joined: Sat Jun 13, 2015 10:43 am

Re: Microsoft .NET Question

Post by btorres »

I have Steam for Windows downloaded as an app for Mac. It's a Wine-based app with it's own package contents. When I checked those contents, I went to Resources/drive_c/windows/Microsoft.NET/Framework. It showed version folders only as high as v2.0.50727! How on earth do I move my Winetricks .NET version into this app's package contents? Am I even supposed to do that?
User avatar
L. Rahyen
Moderator
Moderator
Posts: 338
Joined: Fri Feb 22, 2008 9:13 pm

Re: Microsoft .NET Question

Post by L. Rahyen »

You can use WINEPREFIX environment variable to choose different Wine prefix. It seems you are using third-party wrapper, this is officially not supported here, however, if you figure out what Wine prefix it is using, you can specify it before running winetricks. Wine prefix usually contains drive_c folder right inside it. For example:

Code: Select all

export WINEPREFIX=/path/to/custom/wineprefix
winetricks
Replace "/path/to/custom/wineprefix" with real path.
btorres
Level 1
Level 1
Posts: 6
Joined: Sat Jun 13, 2015 10:43 am

Re: Microsoft .NET Question

Post by btorres »

This is probably what the issue is. It's just annoying that I don't know what prefix each app uses or where to find it.
User avatar
L. Rahyen
Moderator
Moderator
Posts: 338
Joined: Fri Feb 22, 2008 9:13 pm

Re: Microsoft .NET Question

Post by L. Rahyen »

As I have said, third-party wrappers are not supported here. You can try searching your file system for drive_c folders to find all Wine prefixes and then you can look inside Program Files of each and hopefully understand which application installed where. If you need wrapper-specific assistance, ask its author for help. Or use plain Wine.
Locked