I'm struggling to run Qt's C# examples. Please assist.

Mr. Beedell, Roke Julian Lockhart 6 Reputation points
2024-05-16T22:12:50.98+00:00

As https://www.reddit.com/user/rokejulianlockhart/comments/1ctpc4v/im_struggling_to_run_qts_c_examples_please_assist/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button states:

I'm attempting to run https://github.com/qt-labs/qtdotnet.git cloned using Gittyup, as https://github.com/qt-labs/qtdotnet/blob/b99c0857762db36dc10cb4d5bcea90128f044cc0/README.md#quick-start explains, using code-insiders-1.90.0-1715753654.el8.rpm on https://download.fedoraproject.org/pub/fedora/linux/releases/40/Spins/x86_64/iso/Fedora-KDE-Live-x86_64-40-1.14.iso, but nothing seems to work:

  1. Installed https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ms-dotnettools/vsextensions/csharp/2.30.24/vspackage?targetPlatform=linux-x64
  2. Installed https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ms-dotnettools/vsextensions/csdevkit/1.6.6/vspackage?targetPlatform=linux-x64
  3. Cloned https://github.com/qt-labs/qtdotnet.git.
  4. Opened $HOME/Software/Git/GitHub.com/qtdotnet as a folder in VSCode.
  5. The Dev Kit asked me to "upgrade" the folder, and linked to entirely irrelevant documentation not explaining what that means or how to accomplish it, but provided an alternative - choose the C# extension - so I chose that.
  6. Was prompted to add missing files, so did so.
  7. Was prompted to choose an .sln file, so chose one (one of the three without the third's "windows-" prefix, and which are labelled "DotNet 6" instead of windows-'s "DotNet 8", although I've both installed).

When I attempt to run it or, sometimes, perform one of those aforementioned actions, I am hit with a slew of strange errors - https://bugzilla.redhat.com/show_bug.cgi?id=2280895#c0 happened once, but usually, I'm informed that

Projects failed to load because the Mono could not be found. Ensure that Mono and MSBuild are installed, and check the logs for details.

or that msbuild has failed, which seems like it might relate to https://github.com/dotnet/vscode-csharp/issues/5476#issue-1467903164.

Where am I going wrong? I'm quite good at PowerShell, and want to learn Qt6, so this seems like the best way to go about it, but it's proving very difficult in comparison to how I recall using VS on Windows 10 two years ago being. However, I don't have a Windows machine or VM to test the repository on (I don't want to install VirtualBox and have a tained kernel).

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,114 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.