Libmapper.NET 2.4.13

dotnet add package Libmapper.NET --version 2.4.13
                    
NuGet\Install-Package Libmapper.NET -Version 2.4.13
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Libmapper.NET" Version="2.4.13" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Libmapper.NET" Version="2.4.13" />
                    
Directory.Packages.props
<PackageReference Include="Libmapper.NET" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Libmapper.NET --version 2.4.13
                    
#r "nuget: Libmapper.NET, 2.4.13"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Libmapper.NET@2.4.13
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Libmapper.NET&version=2.4.13
                    
Install as a Cake Addin
#tool nuget:?package=Libmapper.NET&version=2.4.13
                    
Install as a Cake Tool

C# Bindings for libmapper

Building C# wrapper library

Run the following command from within the bindings/csharp directory:

dotnet publish -c Release -o . Libmapper.NET

This should produce a file named Libmapper.NET.dll, as well as some debugging symbols.

Building the test example

Run the following command from within the bindings/csharp directory:

dotnet publish -c Release -o Demo Demo

This should produce an executable in the Demo directory named Demo

Running the test example

If you're on Apple Silicon, you'll need to compile another library first. See the Notes section below.

Run the Demo executable from the Demo directory.

cd Demo
dotnet run

You may need to copy the libmapper dynamic library into the same directory (depending on dynamic linker path configuration).

Notes

Due to how Apple Silicon handles variadic arguments (and C#'s lack of support for variadic arguments on non-Windows platforms), the constructor Map(string, Signal[]), used for creating a map from an expression string, requires another dynamic library to act as a wrapper around the variadic call. The code for this library is contained in varargs_wrapper.s.

If you don't plan on using that constructor, you can stop reading now. Else, you'll need to compile the wrapper library:

$ clang -shared -o varargs_wrapper.dylib varargs_wrapper.s

Either put varargs_wrapper.dylib in your library search path or in the same directory as your executable.

To Do

  • add handlers for specific types to avoid typecasts and allow compilation of tests without /unsafe
  • interact with C# Events
  • add more tests
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.4.13 186 10/18/2024
2.4.10 129 8/28/2024
2.4.9 170 8/21/2024