Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

compiling C# & clr C++?



  • 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 ?



  • 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.



  • 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



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


  • Lifetime Qt Champion

    @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



  • 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.


Log in to reply