[GH-ISSUE #239] .NET 6 support #153

Closed
opened 2026-05-05 11:07:00 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @vadi2 on GitHub (May 15, 2021).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/239

Trying out QML.net in .NET 6 Preview 3, the application seems to quit immediately without any errors when DiscoverOrDownloadSuitableQtRuntime() is called:

-------------------------------------------------------------------
You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
-------------------------------------------------------------------
Qt runtime not present in /media/vadi/SSDer/Programs/Hammer/bin/Debug/net6.0/qt-runtime, using a default one
The program '[597048] Hammer.dll' has exited with code 0 (0x0).

This is given this code:

Console.WriteLine($"Qt runtime not present in {qtRuntime}, using a default one");
RuntimeManager.DiscoverOrDownloadSuitableQtRuntime();
Console.WriteLine($"Passed DiscoverOrDownloadSuitableQtRuntime");

Even when you provide a runtime and use ConfigureRuntimeDirectory(), it breaks.

Originally created by @vadi2 on GitHub (May 15, 2021). Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/239 Trying out QML.net in .NET 6 Preview 3, the application seems to quit immediately without any errors when `DiscoverOrDownloadSuitableQtRuntime()` is called: ``` ------------------------------------------------------------------- You may only use the Microsoft .NET Core Debugger (vsdbg) with Visual Studio Code, Visual Studio or Visual Studio for Mac software to help you develop and test your applications. ------------------------------------------------------------------- Qt runtime not present in /media/vadi/SSDer/Programs/Hammer/bin/Debug/net6.0/qt-runtime, using a default one The program '[597048] Hammer.dll' has exited with code 0 (0x0). ``` This is given this code: ```csharp Console.WriteLine($"Qt runtime not present in {qtRuntime}, using a default one"); RuntimeManager.DiscoverOrDownloadSuitableQtRuntime(); Console.WriteLine($"Passed DiscoverOrDownloadSuitableQtRuntime"); ``` Even when you provide a runtime and use `ConfigureRuntimeDirectory()`, it breaks.
Author
Owner

@vadi2 commented on GitHub (May 21, 2021):

It looks like it was an issue with my .NET installation.

<!-- gh-comment-id:845647665 --> @vadi2 commented on GitHub (May 21, 2021): It looks like it was an issue with my .NET installation.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/qmlnet#153
No description provided.