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 8.0, 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: 2.0.0
Author(s): const.me
Last Update: Monday, August 19, 2024
.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

6

days-since-last-release

97