Lightweight cross-platform COM interop NuGet Package

The library only supports IUnknown-based interfaces, it doesn’t handle IDispatch.
You can only use simple types in your interfaces: primitives, structures, strings, pointers, function pointers, but not VARIANT or SAFEARRAY.
This package targets 3 platforms, .NET framework 4.7.2, .NET Core 2.1, and VC++.
Unfortunately, VC++ is Windows only.
To build Linux shared libraries implementing or consuming COM objects, please add "build/native" directory from this package to C++ include paths.
For cmake see include_directories command, or use some other method, depending on your C++ build system, and compiler.
Keep in mind .NET assemblies are often “AnyCPU”, C++ libraries are not, please make sure you’re building your native code for the correct architecture.




Got any Lightweight cross-platform COM interop Question?





Info

Version: 1.3.8
Author(s): const.me
Last Update: Wednesday, November 8, 2023
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/Const-me/ComLightInterop
NuGet Url: https://www.nuget.org/packages/ComLightInterop


Install
Install-Package ComLightInterop
dotnet add package ComLightInterop
paket add ComLightInterop
ComLightInterop Download (Unzip the "nupkg" after downloading)

native
  • No dependencies.
net472 netcoreapp2.1
  • No dependencies.
1 package depend on this package.


Tags



STATS

must-have-score

.3

avg-downloads-per-day

5

days-since-last-release

174