i’ve create a managed DLL using System.IO.MemoryMappedFiles.
The problem is that MemoryMappedFiles are only supported in .NET Framework 4 and
Unity supports only .NET Framework 2.0
How can i solve this issue?
Unity uses Mono, not .NET. The current version of Mono is mostly compatible with .NET 3.5, but with some features still only comparable to .NET 2.0.
To be certain of compatibility, the solution to your issue is to rewrite your DLL to only use .NET 2.0 classes.
eventually what i did was create a C++ based dll that handles all the MemoryMappedFiles accesses.
from C# (Unity) i connected to that dll and called the methods i created in the dll