[Interest] is it possible to add C# compiler?
Jérôme Godbout
godboutj at amotus.ca
Mon Jun 7 14:41:07 CEST 2021
You might need to do a C++/CLI wrapper around your c# library to make this work properly, there was some hackish way to include them that no more work with recent MSVC compiler.
https://www.red-gate.com/simple-talk/development/dotnet-development/creating-ccli-wrapper/
That should allow you to simply include the cli/C wrapper lib into your Qt project just like any other libs. Might be more complex to maintain but that’s also probably the safest way of doing it. Also make sure you always target the same runtime with all your libraries wrapped this way, “there can be only one”. Might need some extra compiler option also with your program to make this work properly with all the c# libs and runtime.
From: Interest <interest-bounces at qt-project.org> on behalf of David Skoland <david.skoland at qt.io>
Date: Monday, June 7, 2021 at 7:48 AM
To: David M. Cotter <dave at kjams.com>
Cc: Qt Interest <Interest at qt-project.org>
Subject: Re: [Interest] is it possible to add C# compiler?
Hi,
Generally, no. I believe the reason you can compile Objective C on MacOS with Qt is clang’s ability to link ObjC to C++ libraries (Qt). I haven’t heard of MSVC or any other compiler which can do the same with C#, which might already be tricky since C# isn’t typically compiled to native assembly.
> On 5 Jun 2021, at 20:07, David M. Cotter <dave at kjams.com> wrote:
>
> I just saw a message go by about someone adding another compiler to Qt Creator?
>
> I know that Qt Creator can compile Objective C on mac.
>
> Made me wonder if it could be possible to add a compiler for C# on windows?
>
> Or is that already there and i don't know about it?
>
> -dave
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
_______________________________________________
Interest mailing list
Interest at qt-project.org
https://lists.qt-project.org/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210607/725682cb/attachment.html>
More information about the Interest
mailing list