Our project structure is like,
native.dll
:- This contains pure native code written in cc++.
This native.dll exposes some functions using *def file.
Wrapper Library(wrapper.dll compiled with .Net framework v4.0)
:-
In order to use functionality of native.dll
, a Wrapper lib(wrapper.dll)
is written in C++CLI
using :clroldsyntax
. This wrapper has all
code of Interoperability
and Marshalling
.
Application(Console App v4.0)
directly uses wrapper.dll
to use functionality provided
by native.dll
.
Now this project needs to run in .Net Core. This means we will have an
.Net Core application
that will reference wrapper.dll
that in turn will refer
native.dll
.
I know this will not directly work. But the issue is whether .Net Core(CoreCLR) supports C++CLI (clroldsyntax) runtime environment ?
If no, what can be the possible solutions to this application work ?
See Question&Answers more detail:os