C++/CLI Support in .Net Core

前端 未结 4 931
抹茶落季
抹茶落季 2020-12-08 10:16

Our project structure is like,

native.dll :- This contains pure native code written in c\\c++. This native.dll exposes some functions using *def file.<

4条回答
  •  误落风尘
    2020-12-08 10:31

    .net Core team will only commit (now?) to supporting C++/CLI for Windows only.

    The intention was to deliver it for .net Core 3.0. While I haven't found explicit mention of it yet in the release notes, C++/CLI support was a prerequisite for delivering WPF (windows-only), which is now supported in .net Core 3.0.

    Support mixed-mode assemblies on Windows - #18013

    This issue (#18013) will track progress toward supporting loading and running mixed-mode assemblies on CoreCLR. The main goal is to provide support for WPF and other existing C++/CLI code on .NET Core. Some of the work will be dependent on updates to the MSVC compiler.

    The github issue (#659) mentioned above by @Tomas-Kubes, Will CoreCLR support C++/CLI crossplat? - #659, is about cross-platform C++/CLI.

    BTW, I am getting compiler warnings on "clr\oldsyntax" with VS2017/.net-4.7. So this compiler flag is already deprecated.

    UPDATE: This isn't coming till .Net Core 3.1

提交回复
热议问题