使组件COM-Visible不可用 [英] Make assembly COM-Visible not available

查看:187
本文介绍了使组件COM-Visible不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我转到我的程序集信息中输出类型为类库的C#项目时,我的"使程序集COM-Visible"的选项显示为灰色。 如何获得此选项? 我正在运行VS 2017社区。

When i go to my Assembly information for a C# project with an output type of Class Library, my option for "Make assembly COM-Visible is greyed out.  How can I get this option available?  I am running VS 2017 Community.

推荐答案

嗨朋友,

欢迎来到MSDN论坛。

Welcome to the MSDN forum.

您的C#项目类型是什么?

What's your C# project type?

请尝试创建一个新的C#控制台项目并右键单击项目名称,选择"属性"并将输出类型设置为"类库",然后单击"程序集信息"。和选项"Make assembly COM-Visible"应该像以下
一样启用:

Please try to create a new C# console project and right click the project name, select 'Properties' and Output type set as 'Class Library', click "Assembly Information" and the option "Make assembly COM-Visible" should enabled like the following:

祝你好运,

Sara


这篇关于使组件COM-Visible不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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