These are notes based on my experience getting the Qt C# Bridge (0.3 Beta) to run on Rider on Fedora 44 (to the point you can run the default project). It's possible not all steps / packages are necessary - these are just the steps I did.
I opted for creating the /qt6bridge_prefix directory here to ensure I didn't break anything else whilst putting files where the build expects to find them.
sudo dnf install dotnet-sdk-10.0 qt6-qtdeclarative-devel qt6-qttools-devel qt-creator ninja
dotnet new install QtGroup.Qt.Bridge.CSharp.Templates
sudo mkdir -p /qt6bridge_prefix/{bin,lib}
cd /qt6bridge_prefix/lib
sudo ln -s /usr/lib64/cmake cmake
# Create qt binaries directory - Fedora renames some qt6 versions of tools
# and Rider appears to provide no alternative to allow using these
cd /qt6bridge_prefix/bin
sudo ln -s /usr/bin/qmllint-qt6 qmllint
sudo ln -s /usr/bin/qmlformat-qt6 qmlformat
sudo ln -s /usr/bin/qmlls qmlls
rider
- Install the QML plugin for Rider
- Create Rider project using QML template
- Edit the .csproj file to remove extra line returns / whitespace on
QtBridgeTemplateRidandQtBridgeTemplateArchvalues - In Settings => Build, Execution & Deployment => Toolset & Build
- Add the following to MSBuild global properties:
QtDir=/qt6bridge_prefix
- Add the following to MSBuild global properties:
- In Settings => Languages & Frameworks => QML
- Set the QT Binaries path to
/qt6bridge_prefix/bin - Enable the qmlformat and languages server options below
- Set the QT Binaries path to
- In the Run/Debug Configuration set the environment variable:
QT_LOGGING_RULES="qml=true";
QT_LOGGING_RULES: This re-enables the QML console.* logging, which Fedora disables by default. https://bugzilla.redhat.com/show_bug.cgi?id=1227295 and https://doc.qt.io/qt-6/qloggingcategory.html . The log entries will appear with the prefix "qml" in the Rider console.