Having problems getting DLL plugin working properly

In my problems with getting a fast CSV importer working (as mentioned my other post) I attempted setting things up with the library here: Simple and Fast CSV Library in C# - CodeProject - compiled in to a DLL.

Problem is, once I converted it to the DLL, when I add it to my assets folder i get the error:

Internal compiler error. See the console log for more information. output was:
Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in :0
at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in :0
at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in :0
at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in :0
at Mono.CSharp.Driver.LoadReferences () [0x00000] in :0
at Mono.CSharp.Driver.Compile () [0x00000] in :0
at Mono.CSharp.Driver.Main (System.String[ ] args) [0x00000] in :0

This is my first attempt at trying to use a DLL in Unity, not sure how to go about fixing this… Any advice?

Usually, that would indicate that the DLL was built in an incompatible .NET target framework.

Check that the DLL is built targeting 3.5 or lower.

The class is using features of .Net 4.0 like BlockingCollection. As LightStriker said, it can’t use features that were introduced beyond .NET 3.5.

you can try use unmanaged dll method to read

example

[DllImport (path, EntryPoint=“VoiceAvailable”)]
private static extern int VoiceAvailable ();
[DllImport (path, EntryPoint=“InitVoice”)]
private static extern void InitVoice ();