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. compiling C# & clr C++?
Forum Update on Monday, May 27th 2025

compiling C# & clr C++?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 898 Views
  • 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.
  • D Offline
    D Offline
    davecotter
    wrote on 6 Sept 2019, 05:49 last edited by
    #1

    In VS, i can have a single solution that includes:

    1. a C# proj which calls all manner of .NET assemblies (which produces a DLL i can call from a CLR project)
    2. a CLR project which calls into the C# dll (which then produces a DLL i can use from plain C++)
    3. a C++ project that calls into the CLR dll

    is it possible to do this all from within a Qt .pro file? or must i do steps 1 and 2 outside of Qt ?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      davecotter
      wrote on 6 Sept 2019, 18:10 last edited by davecotter 9 Jul 2019, 18:50
      #5

      Apparently the answer is: No, there is no "out of the box" method (with no special setup, using qmake)

      easiest is to just do step 1 and 2 outside of Qt.

      1 Reply Last reply
      0
      • V Offline
        V Offline
        VRonin
        wrote on 6 Sept 2019, 09:18 last edited by VRonin 9 Jun 2019, 09:19
        #2

        2 and 3 are possible with qmake (i.e. .pro files) but not step 1. all 3 steps are possible with CMake. I doubt, however, that QtCreator will be able to manage a CMake C# project but you are welcome to try

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        3
        • D Offline
          D Offline
          davecotter
          wrote on 6 Sept 2019, 16:41 last edited by
          #3

          i suppose there's little chance that Qt Creator will ever support C# ?

          A 1 Reply Last reply 6 Sept 2019, 16:56
          0
          • D davecotter
            6 Sept 2019, 16:41

            i suppose there's little chance that Qt Creator will ever support C# ?

            A Offline
            A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 6 Sept 2019, 16:56 last edited by
            #4

            @davecotter Creator has Language Server Support since few versions, so at least editing and Code Completion should be possible. So all you need would be a build system that supports these languages.

            Regards

            Qt has to stay free or it will die.

            1 Reply Last reply
            2
            • D Offline
              D Offline
              davecotter
              wrote on 6 Sept 2019, 18:10 last edited by davecotter 9 Jul 2019, 18:50
              #5

              Apparently the answer is: No, there is no "out of the box" method (with no special setup, using qmake)

              easiest is to just do step 1 and 2 outside of Qt.

              1 Reply Last reply
              0

              1/5

              6 Sept 2019, 05:49

              • Login

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