http://bugs.winehq.org/show_bug.cgi?id=59041
Bug ID: 59041 Summary: Incorrect Casting for NET 10 Runtime Apps Product: Wine Version: 10.19 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: -unknown Assignee: wine-bugs@list.winehq.org Reporter: dreamsyntax@gmail.com Distribution: ---
Created attachment 79808 --> http://bugs.winehq.org/attachment.cgi?id=79808 Backtrace and terminal output
Upon upgrading some of my NET 9 Desktop Runtime WPF applications to NET 10, Wine now has different behavior with Ookii Dialogs.
A very simple application was built to easily reproduce this bug https://github.com/dreamsyntax/net10-bug-ookii-wine-repro
I have also attached an identical program but built with NET 9 to demonstrate the proper behavior.
Tested on Wine 10.19 (staging, dev and stable all tested on Debian Trixie as of 2025-11-24). I also tested on Arch linux on Wine 10.19 stable, which is where my attachments are ran on.
Reproduce steps 1. Make a brand new wine prefix 2. Install required .NET Desktop Runtime x64 (10.0.0 for bug repro) If testing NET 10 version (one with bug) - install: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop...
If testing NET 9 version - install: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop...
3. Run the test application (NET10WineBugReproduceWPF.exe) 4. Click the single button available in the UI 5. Wine will crash on NET 10 version; without ever having shown the file picker. Will not crash on NET 9 version.
6. On Windows and NET 9 versions, the FilePicker will appear, and upon choosing an EXE it will pop a messagebox with the filepath chosen.
NET10-BUILD--net10-bug-ookii-wine-repro.zip sha256:474949597616a1dc14cb3f03d91570fdc7ff9d425d872f50f3a40fd3a0a5f3c3
NET9-BUILD--net10-bug-ookii-wine-repro.zip sha256:c4c1c7ce33856c64df1157ad38f29da6e4222b4f33a6ed2a20bc4de4a556c2f2