Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. I'm struggling to run Qt's C# examples because DotNet states that "Mono could not be found", yet DotNet Core is.
Forum Updated to NodeBB v4.3 + New Features

I'm struggling to run Qt's C# examples because DotNet states that "Mono could not be found", yet DotNet Core is.

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 4 Posters 1.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • RokeJulianLockhartR Offline
    RokeJulianLockhartR Offline
    RokeJulianLockhart
    wrote on last edited by RokeJulianLockhart
    #1

    As reddit.com/user/rokejulianlockhart/comments/1ctpc4v 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).

    When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

    Pl45m4P 1 Reply Last reply
    0
    • C ChrisW67

      Why not following the installation instructions on GitHub?
      I did that. I've detailed that above. I even linked to them.

      Then you have Visual Studio not VS Code (which means working on Windows).

      RokeJulianLockhartR Offline
      RokeJulianLockhartR Offline
      RokeJulianLockhart
      wrote on last edited by RokeJulianLockhart
      #8

      @ChrisW67 said in I'm struggling to run Qt's C# examples. Please assist.:

      Why not following the installation instructions on GitHub?
      I did that. I've detailed that above. I even linked to them.
      

      Then you have Visual Studio not VS Code (which means working on Windows).

      I rather evidently don't, if I'm not using Windows. VS doesn't run on anything except an NT or Darwin base. However, I see why you're confused - it appears that I misread https://github.com/qt-labs/qtdotnet/blob/b99c0857762db36dc10cb4d5bcea90128f044cc0/README.md?plain=1#L45 as VSC, rather than just VS. How depressing - that'll be the cause of all this, then. Thanks.

      When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

      1 Reply Last reply
      0
      • RokeJulianLockhartR RokeJulianLockhart

        As reddit.com/user/rokejulianlockhart/comments/1ctpc4v 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).

        Pl45m4P Offline
        Pl45m4P Offline
        Pl45m4
        wrote on last edited by
        #2

        @RokeJulianLockhart said in I'm struggling to run Qt's C# examples. Please assist.:

        I'm quite good at PowerShell, and want to learn Qt6

        My good advice, if you really want to learn "Qt".... Start to learn C++ instead of fiddeling around with Qt.NET bindings.

        1. Cloned https://github.com/qt-labs/qtdotnet.git.
        2. Opened $HOME/Software/Git/GitHub.com/qtdotnet as a folder in VSCode.

        Why not following the installation instructions on GitHub?

        1. Install requirements.
        2. Clone repository
        3. Open solution file qtdotnet.sln.
        4. Press F5.
        

        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

        ~E. W. Dijkstra

        RokeJulianLockhartR J.HilkJ 2 Replies Last reply
        3
        • Pl45m4P Pl45m4

          @RokeJulianLockhart said in I'm struggling to run Qt's C# examples. Please assist.:

          I'm quite good at PowerShell, and want to learn Qt6

          My good advice, if you really want to learn "Qt".... Start to learn C++ instead of fiddeling around with Qt.NET bindings.

          1. Cloned https://github.com/qt-labs/qtdotnet.git.
          2. Opened $HOME/Software/Git/GitHub.com/qtdotnet as a folder in VSCode.

          Why not following the installation instructions on GitHub?

          1. Install requirements.
          2. Clone repository
          3. Open solution file qtdotnet.sln.
          4. Press F5.
          
          RokeJulianLockhartR Offline
          RokeJulianLockhartR Offline
          RokeJulianLockhart
          wrote on last edited by
          #3

          @Pl45m4 said in I'm struggling to run Qt's C# examples. Please assist.:

          Why not following the installation instructions on GitHub?

          1. Install requirements.
          2. Clone repository
          3. Open solution file qtdotnet.sln.
          4. Press F5.

          I did that. I've detailed that above. I even linked to them.

          @Pl45m4 said in I'm struggling to run Qt's C# examples. Please assist.:

          My good advice, if you really want to learn "Qt".... Start to learn C++

          I don't want to learn a language that I won't want to use - I already know PyQt6 and PySide6 enough that I've been able to create what I want with them, but that means that every time I want to convert a CLI PowerShell script to having a GUI, I have to completely reinvent it in another language.

          When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

          C 1 Reply Last reply
          0
          • Pl45m4P Pl45m4

            @RokeJulianLockhart said in I'm struggling to run Qt's C# examples. Please assist.:

            I'm quite good at PowerShell, and want to learn Qt6

            My good advice, if you really want to learn "Qt".... Start to learn C++ instead of fiddeling around with Qt.NET bindings.

            1. Cloned https://github.com/qt-labs/qtdotnet.git.
            2. Opened $HOME/Software/Git/GitHub.com/qtdotnet as a folder in VSCode.

            Why not following the installation instructions on GitHub?

            1. Install requirements.
            2. Clone repository
            3. Open solution file qtdotnet.sln.
            4. Press F5.
            
            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #4

            @Pl45m4 said in I'm struggling to run Qt's C# examples. Please assist.:

            fiddeling around with Qt.NET bindings.

            ! Didn't know this abomination was a thing! What's next Qt for Rust, Ring, GO !?

            ok, I give up.
            https://kdab.github.io/cxx-qt/book/index.html
            https://ring-lang.github.io/doc1.16/qt.html
            https://github.com/therecipe/qt


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            RokeJulianLockhartR 1 Reply Last reply
            2
            • J.HilkJ J.Hilk

              @Pl45m4 said in I'm struggling to run Qt's C# examples. Please assist.:

              fiddeling around with Qt.NET bindings.

              ! Didn't know this abomination was a thing! What's next Qt for Rust, Ring, GO !?

              ok, I give up.
              https://kdab.github.io/cxx-qt/book/index.html
              https://ring-lang.github.io/doc1.16/qt.html
              https://github.com/therecipe/qt

              RokeJulianLockhartR Offline
              RokeJulianLockhartR Offline
              RokeJulianLockhart
              wrote on last edited by
              #5

              @J-Hilk, well, Qt is pretty popular, for good reason. I'm as surprised as you are, though. XD

              When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

              Pl45m4P 1 Reply Last reply
              0
              • RokeJulianLockhartR RokeJulianLockhart

                @J-Hilk, well, Qt is pretty popular, for good reason. I'm as surprised as you are, though. XD

                Pl45m4P Offline
                Pl45m4P Offline
                Pl45m4
                wrote on last edited by Pl45m4
                #6

                @J-Hilk said in I'm struggling to run Qt's C# examples. Please assist.:

                ! Didn't know this abomination was a thing! What's next Qt for Rust, Ring, GO !?

                Qt for MatLab 🤡☠

                @RokeJulianLockhart said in I'm struggling to run Qt's C# examples. Please assist.:

                @J-Hilk, well, Qt is pretty popular, for good reason. I'm as surprised as you are, though. XD

                Yeah, but for the best "Qt" experience and to really learn how to use the Qt Framework (which is a C++ Framework), you should use C++.... or at least Qt for Python (via PySide/PyQt), which is reasonable as well...

                Everything else (there might be people judging me on that), feels like "Oh Qt is great... so let's make it available for every other god damn platform/languague etc."
                If I want to use Qt, I would go with C++/Python.
                If I am somehow limited to C# (or some other language besides the two mentioned above), I would't consider using Qt... There might be easier/better alternatives, even though "Qt is great".

                @RokeJulianLockhart said in I'm struggling to run Qt's C# examples. Please assist.:

                I did that. I've detailed that above. I even linked to them.

                You said, you've "opened the folder" in VS Code... opening a directory is not the same as loading a project/solution file.

                @RokeJulianLockhart said in I'm struggling to run Qt's C# examples. Please assist.:

                CLI PowerShell script to having a GUI

                One guy here is the owner of some "Qt Widget CLI" project on GitHub... Which "renders" simple QtWidgets like buttons and so on, in a CLI environment.
                Can't remember who is was actually :(
                @kshegunov you (maybe)?
                @J-Hilk or you?
                @SGaist you know everything :P
                Maybe one of you knows what I'm talking about and can link to that.


                If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                ~E. W. Dijkstra

                RokeJulianLockhartR 1 Reply Last reply
                1
                • RokeJulianLockhartR RokeJulianLockhart

                  @Pl45m4 said in I'm struggling to run Qt's C# examples. Please assist.:

                  Why not following the installation instructions on GitHub?

                  1. Install requirements.
                  2. Clone repository
                  3. Open solution file qtdotnet.sln.
                  4. Press F5.

                  I did that. I've detailed that above. I even linked to them.

                  @Pl45m4 said in I'm struggling to run Qt's C# examples. Please assist.:

                  My good advice, if you really want to learn "Qt".... Start to learn C++

                  I don't want to learn a language that I won't want to use - I already know PyQt6 and PySide6 enough that I've been able to create what I want with them, but that means that every time I want to convert a CLI PowerShell script to having a GUI, I have to completely reinvent it in another language.

                  C Offline
                  C Offline
                  ChrisW67
                  wrote on last edited by ChrisW67
                  #7

                  Why not following the installation instructions on GitHub?
                  I did that. I've detailed that above. I even linked to them.

                  Then you have Visual Studio not VS Code (which means working on Windows).

                  RokeJulianLockhartR 1 Reply Last reply
                  2
                  • C ChrisW67

                    Why not following the installation instructions on GitHub?
                    I did that. I've detailed that above. I even linked to them.

                    Then you have Visual Studio not VS Code (which means working on Windows).

                    RokeJulianLockhartR Offline
                    RokeJulianLockhartR Offline
                    RokeJulianLockhart
                    wrote on last edited by RokeJulianLockhart
                    #8

                    @ChrisW67 said in I'm struggling to run Qt's C# examples. Please assist.:

                    Why not following the installation instructions on GitHub?
                    I did that. I've detailed that above. I even linked to them.
                    

                    Then you have Visual Studio not VS Code (which means working on Windows).

                    I rather evidently don't, if I'm not using Windows. VS doesn't run on anything except an NT or Darwin base. However, I see why you're confused - it appears that I misread https://github.com/qt-labs/qtdotnet/blob/b99c0857762db36dc10cb4d5bcea90128f044cc0/README.md?plain=1#L45 as VSC, rather than just VS. How depressing - that'll be the cause of all this, then. Thanks.

                    When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

                    1 Reply Last reply
                    0
                    • RokeJulianLockhartR RokeJulianLockhart has marked this topic as solved on
                    • Pl45m4P Pl45m4

                      @J-Hilk said in I'm struggling to run Qt's C# examples. Please assist.:

                      ! Didn't know this abomination was a thing! What's next Qt for Rust, Ring, GO !?

                      Qt for MatLab 🤡☠

                      @RokeJulianLockhart said in I'm struggling to run Qt's C# examples. Please assist.:

                      @J-Hilk, well, Qt is pretty popular, for good reason. I'm as surprised as you are, though. XD

                      Yeah, but for the best "Qt" experience and to really learn how to use the Qt Framework (which is a C++ Framework), you should use C++.... or at least Qt for Python (via PySide/PyQt), which is reasonable as well...

                      Everything else (there might be people judging me on that), feels like "Oh Qt is great... so let's make it available for every other god damn platform/languague etc."
                      If I want to use Qt, I would go with C++/Python.
                      If I am somehow limited to C# (or some other language besides the two mentioned above), I would't consider using Qt... There might be easier/better alternatives, even though "Qt is great".

                      @RokeJulianLockhart said in I'm struggling to run Qt's C# examples. Please assist.:

                      I did that. I've detailed that above. I even linked to them.

                      You said, you've "opened the folder" in VS Code... opening a directory is not the same as loading a project/solution file.

                      @RokeJulianLockhart said in I'm struggling to run Qt's C# examples. Please assist.:

                      CLI PowerShell script to having a GUI

                      One guy here is the owner of some "Qt Widget CLI" project on GitHub... Which "renders" simple QtWidgets like buttons and so on, in a CLI environment.
                      Can't remember who is was actually :(
                      @kshegunov you (maybe)?
                      @J-Hilk or you?
                      @SGaist you know everything :P
                      Maybe one of you knows what I'm talking about and can link to that.

                      RokeJulianLockhartR Offline
                      RokeJulianLockhartR Offline
                      RokeJulianLockhart
                      wrote on last edited by RokeJulianLockhart
                      #9

                      @Pl45m4 said in I'm struggling to run Qt's C# examples. Please assist.:

                      I did that. I've detailed that above. I even linked to them.
                      

                      You said, you've "opened the folder" in VS Code... opening a directory is not the same as loading a project/solution file.

                      I've included six steps of what I did, and to my knowledge, I loaded it. Is VS Code incapable of that, even with the aforementioned extensions installed?

                      @Pl45m4 said in I'm struggling to run Qt's C# examples. Please assist.:

                      CLI PowerShell script to having a GUI
                      

                      One guy here is the owner of some "Qt Widget CLI" project on GitHub... Which "renders" simple QtWidgets like buttons and so on, in a CLI environment.
                      Can't remember who is was actually :(
                      @kshegunov you (maybe)?
                      @J-Hilk or you?
                      @SGaist you know everything :P
                      Maybe one of you knows what I'm talking about and can link to that.

                      Thank you for that. I suppose a TUI isn't a terrible stopgap in some circumstances.

                      When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

                      1 Reply Last reply
                      0
                      • S SimonSchroeder referenced this topic on

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved