[Bug 50099] New: .Net GetFullPath not working correctly

WineHQ Bugzilla wine-bugs at winehq.org
Fri Nov 6 04:21:56 CST 2020


https://bugs.winehq.org/show_bug.cgi?id=50099

            Bug ID: 50099
           Summary: .Net GetFullPath not working correctly
           Product: Wine
           Version: 5.0.2
          Hardware: x86-64
                OS: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: P2
         Component: -unknown
          Assignee: wine-bugs at winehq.org
          Reporter: grimessa at gmail.com
      Distribution: ---

I have an application I wrote myself in C#.  

It works perfectly on Windows.

However it is not working in wine.  The application tries to load sound files
to play from a subfolder of where the exe is.  So the code uses GetFullPath
method to get the absolute path from a relative path string.

I am not using Mono, it is using Native .Net.

GetFullPath is a static method of the Path class, which is part of .Net in
System.IO namespace.

The application I am running is running from this path in the WineBottle
MyWineBottle/drive_c/MyApp/App.exe

So when calling 
string path = System.IO.Path.GetFullPath(@"Sounds\1.wav");
The expected path should be:
C:\MyApp\Sounds\1.wav

However, it returns this instead
D:\home\grimes\Sounds\1.wav
(grimes is my username)

This does not seem correct.  I am not sure why it is returning the Path from
the D drive.  There does not seem to be one in the winebottle anyway.

I am new to Wine(and linux) so let me know if there might be config I may have
overlooked.

Here are the details of my system
Linux Mint 19.3 Tricia
Wine 5.0.2
.Net 4.6.1
WINEARCH=win32

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list