To develop a .Net Framework application that uses LibCecSharp:
- download the latest binary version from our website
- add a reference to LibCecSharp.dll for the target architecture (x86/amd64). It's installed to
C:\Program Files (x86)\Pulse-Eight\USB-CEC Adapter\netfxby default - the minimum .Net Framework version required for LibCecSharp is 4.0
An example implementation can be found on Github.
To develop a .Net Core application that uses LibCecSharp:
- download the latest binary version from our website
- add a reference to LibCecSharpCore.dll for the target architecture (x86/amd64). It's installed to
C:\Program Files (x86)\Pulse-Eight\USB-CEC Adapter\netcoreby default - the minimum .Net Core version required for LibCecSharpCore is 3.1
An example implementation can be found on Github.
To compile libCEC on Windows, you'll need the following dependencies:
- p8-platform 2.0 or later
- cmake 3.12 or newer
- Visual Studio 2019 (v16) or newer, with the following options selected: Universal Windows Platform development, Desktop development with C++, .NET Core cross platform development
- .Net Core 3.1
- To create an installer, you'll need Nullsoft's NSIS
- You also need two versions of Python to build an installer: Python 2.7.13 for x86, required by the EventGhost plugin and Python 3.6 or newer for x64
To only compile libCEC, follow these instructions:
git submodule update --init --recursive- run
python windows\create-installer.py -nito build libCEC and LibCecSharp
To develop for libCEC in Visual Studio:
git submodule update --init --recursive- run
python windows\create-installer.py -vs
To build an installer on Windows:
git submodule update --init --recursive- run
python windows\create-installer.py - the installer is stored as
dist\libCEC-VERSION.exe