如何在基于beta8的.net核心项目中添加COM dll参考? [英] How can I add a COM dll reference in my .net core project based on beta8?

查看:103
本文介绍了如何在基于beta8的.net核心项目中添加COM dll参考?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个基于dnx 1.0.0-beta8版本的.net核心Web项目。我正在尝试引用必须通过regsvr32在计算机上注册的COM dll。 .net核心项目是否允许引用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. Does .net core projects allow 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 refrences 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核心项目中添加COM dll参考?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆