问题描述
我们有一个基于 dnx 1.0.0-beta8 版本的 .NET Core Web 项目.我试图引用一个 COM DLL,我必须通过 regsvr32 在计算机上注册它..NET Core 项目是否允许您引用 COM DLL?
We have a .NET Core web project based on version dnx 1.0.0-beta8. I am trying to reference a COM DLL which I have to register on the computer through regsvr32. Do .NET Core projects allow you to reference COM DLLs?
推荐答案
据我所知,所有当前发布的 .NET Core(1.1 及以下)和 .NET Standard(1.6 及以下)版本都没有办法添加 COM 引用,因为 .NET Core 是为多平台设计的,而 COM 是 Windows 特定的功能.
To the best of my knowledge all currently released versions of .NET Core (1.1 and below) and .NET Standard (1.6 and below) do not have a way to add COM references due to the fact that .NET Core is designed to be multi-platform and COM is a Windows-specific feature.
不知道 2.0 会不会引入这个功能.
I do not know if 2.0 will bring this feature in or not.
这篇关于如何在基于 beta8 的 .NET Core 项目中添加 COM DLL 引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!