-
I'm curious, why do we need [ComVisible(true)] attribute in Ribbon class? |
Beta Was this translation helpful? Give feedback.
Answered by
govert
Jun 15, 2023
Replies: 1 comment
-
In the past, the default C# project template put an attribute in the AssemblyInfo.cs that sets
With this common assembly-wide attribute in place, you need to explicitly set your class to be |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
schebotar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the past, the default C# project template put an attribute in the AssemblyInfo.cs that sets
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 beComVisible
, and so the extra attribute does nothing.