I have a code base that uses a C++/CLI project which exposes C++ classes to the CLR via thin wrapper classes. For example...
C++ code in a C++ project
class Foo {
public Foo(bool wat) { /* do the things */ }
};
C++/CLI code in a mixed-mode assembly (C++/CLI project)
public ref class ManagedFoo {
Foo * foo;
public:
ManagedFoo (bool wat) { foo = new Foo(wat); }
!ManagedFoo () { delete foo; }
~ManagedFoo () { this->!ManagedFoo (); }
};
As far as I know, mixed-mode assemblies will pretty much only run on Windows .NET. I'm hoping I don't need to re-factor the components and use P/Invoke
, which would give me cross-platform support.
Does anyone know if .NET Core will support mixed mode assemblies? Other ideas are welcome.