A PCL implementation of PortMidi in C#
PortMidi (http://portmedia.sourceforge.net/portmidi/) is a cross-platform libary for MIDI input and output. PortMidiDotNet is a C# PCL (portable class library) implementation of the library using PInvoke. Rather than merely providing access to the native C functions, PortMidiDotNet provides a C# style class and event-based implementation of MIDI IO.
Code is C# 6.0 and all project/solution files are Visual Studio 2015.
PortMidiDotNet is licensed under LGPL 3.0 (http://www.gnu.org/licenses/lgpl-3.0.en.html). This means you're free to use it in any commercial or non-commercial applications as long as you only link to the compiled library. Any additions or modifications to the source code must be published under the same license.