LegacyWrapper 2.1 is out!

20.08.2017 Programming .NET C# Legacy Wrapper

Today, I released version 2.1 of my NuGet package LegacyWrapper. It comes with a major enhancement regarding the cross-architecture loading of DLLs: It is now possible to load 64bit DLLs from a 32bit process:

1using (var client = new WrapperClient(TestDllPath, TargetArchitecture.Amd64))
3    result = (int)client.Invoke<TestStdCallDelegate>("TestStdCall", new object[] { input });

As the second constructor parameter is optional and defaults to X86, the new release should be fully backwards compatible.


From now on, there are two wrapper executables, one for each processor architecture. The wrapper client will evaluate the TargetArchitecture parameter and then execute the appropriate wrapper. The unit tests are aware of the new feature. However, I found no solution to automatically invoke unit tests for both architectures, so they need to be run manually.

[Click here for the original blog post explaining LegacyWrapper.]({% post_url 2015-09-28-legacy-wrapper-invoking-an-unmanaged-32bit-library-out-of-a-64bit-process %})

Click here for the project at GitHub.

Related posts

... some things you might also be interested in

LegacyWrapper 3.0 released
02.02.2019 | Programming | .NET C# Legacy Wrapper
Invoking an unmanaged 32bit library out of a 64bit process
28.09.2015 | Programming | .NET C# Legacy Wrapper
UWP-Apps - First Steps [Part 1]
22.03.2016 | Programming | .NET C# UWP WPF