I have a code base that uses a C ++ / CLI project that provides C ++ classes for the CLR through thin shell classes. For instance...
C ++ - code in a C ++ project
class Foo { public Foo(bool wat) { } };
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, assemblies in mixed mode will largely only run on Windows.NET. I hope that I donβt need to rebuild the components and use P/Invoke , which will give me cross-platform support.
Does anyone know if .NET Core supports mixed builds? Other ideas are welcome.
source share