C# Lua Batchfile
Latest commit 829e3a5 Mar 4, 2017 @ddobrev Updated to the latest C++# in order to reduce the code for compiling …

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>



Mono/.NET bindings for Qt

This project aims to create Mono/.NET libraries that wrap Qt (https://qt-project.org/) thus enabling its usage through C#. It relies on the excellent CppSharp (https://github.com/mono/CppSharp). It is a generator that expects the include and library directories of a Qt set-up and then generates and compiles the wrappers. While still in development, it should work with any Qt version when complete. There is no Qt included in the repository, users have to download and install Qt themselves. For now, Qt MinGW for Windows has been the only tested version. Qt for OS X and Linux are planned, Qt for VC++ has not been planned for now.

The source code is separated into a library that contains the settings and passes the generator needs, and a command-line client. In the future a GUI client, constructed with Qt# itself, is planned as well.

The are binary releases for Windows and Qt MinGW at https://github.com/ddobrev/QtSharp/releases. They are in an alpha stage. As they get more stable, binaries for other operating systems will be added as well.

Getting started

You need to deploy Qt itself by following http://doc.qt.io/qt-5/windows-deployment.html#application-dependencies . In addition, for each Qt module you use you also need Qt-inlines.dll deployed alongside your executable. You can use QtSharp with any C# IDE, including Visual Studio, but make sure your executable is 32-bit by either using the x86 configuration or AnyCPU with "Prefer 32-bit" checked.


You can find examples at https://github.com/dsoronda/QtSharpDemos and https://github.com/grbd/QtSharp.TestApps . Thanks to https://github.com/dsoronda and https://github.com/grbd.


  1. Building - QtSharp
  2. Running - QTSharp CLI
  3. Running - NUnit Tests
  4. Building - CppSharp


QtSharp has been tested only with Qt for MinGW, and with Qt's built-in MinGW set-up, so far.


In order to speed up the development of the project, I've been looking for funding. There are 2 ways for that. The first one is sponsoring Qt# itself. The second way would be paid assignments related to CppSharp - for example bindings for other C++ libraries. Either way is going to immensely benefit Qt#.