如何在 Rider 中添加 com 引用

问题描述

在 Visual Studio 中,我们可以“添加为 COM 模型”在解决方案中的项目中添加链接。但是如何在 Rider 中做到这一点呢? 我只看到添加对项目的引用。

enter image description here

解决方法

Rider 不会为 .net 核心项目添加引用(包括框架程序集和 com 组件)。您的项目针对哪个目标框架?可能是 netcoreapp。