Skip to content

[ComVisible(true)] in Ribbon class #620

Answered by govert
schebotar asked this question in Q&A
Discussion options

You must be logged in to vote

In the past, the default C# project template put an attribute in the AssemblyInfo.cs that sets

[assembly:ComVisible(false)]

With this common assembly-wide attribute in place, you need to explicitly set your class to be ComVisible(true). Without the assembly attribute, the default is for any public class to be ComVisible, and so the extra attribute does nothing.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by schebotar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants