相关疑难解决方法(0)

.Net Core中的C++/CLI支持

我们的项目结构如,

native.dll: - 这包含用c\c ++编写的纯本机代码.这个native.dll使用*def文件公开了一些函数.

Wrapper Library(wrapper.dll compiled with .Net framework v4.0)-为了使用的功能native.dll,一个Wrapper lib(wrapper.dll) 是写在C++\CLI使用:clr\oldsyntax.此包装具有的所有代码InteroperabilityMarshalling.

Application(Console App v4.0)直接用于wrapper.dll使用提供的功能native.dll.

现在这个项目需要在.Net Core中运行.这意味着我们将有一个 .Net Core applicationreference wrapper.dll,反过来会参考 native.dll.

我知道这不会直接起作用.但问题是.Net Core(CoreCLR)是否支持 C++\CLI(clr\oldsyntax)运行时环境

如果不是,该应用程序可能的解决方案是什么?

managed-c++ unmanaged c++-cli .net-core coreclr

25
推荐指数
3
解决办法
1万
查看次数

标签 统计

.net-core ×1

c++-cli ×1

coreclr ×1

managed-c++ ×1

unmanaged ×1