使.NET标准库成为COM-Visible? [英] Make a .NET Standard library COM-Visible?
问题描述
对于完整的.NET项目,您可以在 Project Properties>中选中一个框,使该项目在COM中可见。应用程序标签>程序集信息..
:
For a full .NET project you can tick a box to make the project COM Visible in Project Properties > Application tab > Assembly Information..
:
但是,.NET Standard项目中没有组装信息..
按钮,而是在项目属性>中输入了数据;软件包选项卡
,但该选项卡没有用于使$code>使程序集COM可见的复选框:
However, the Assembly Information..
button doesn't exist for .NET Standard projects, instead that data is entered on the Project Properties > Package tab
, but that tab doesn't have a checkbox for Make Assembly COM-Visible
:
您是否仍可以通过其他方法使.NET标准库COM可见,或者它不能使出于某种原因会这样做吗?
Can you still make .NET Standard libraries COM Visible by some other method, or does it not make sense to do that for some reason?
推荐答案
我在GitHub上评论了您的问题。只要您选择的运行时支持.NET Standard和COM可见性,就可以使.NET Standard库COM可见。
I commented on your issue at GitHub. You can definitely make .NET Standard libraries COM visible, provided the runtime you choose supports both .NET Standard and COM visibility.
以下是使用Visual Studio 2017和WiX的示例:
ComVisibleNetStandard
Here's an example using Visual Studio 2017 and WiX: ComVisibleNetStandard
这篇关于使.NET标准库成为COM-Visible?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!