Marcus from London
Guest
|
Hi Guys,
I question more out of curiosity than anything.
I have my project assembly flagged as COM-Visible.
Meanwhile I ran VS Code Analysis and it displayed 'Warning CA1405' for each Advance Pane in my project with the following message:
'adxWordPane01' is marked ComVisible(true) but has the following ComVisible(false) types in its object hierarchy: 'ADXForm'
Express C:\Files\Projects\Express\Express\adxWordPane01.vb
So 2 questions if I may:
1. Is it indeed correct to have the project marked as COM-Visible?
2. If it is correct to mark the project as COM-Visible, should I heed this warning or ignore it?
If I should heed it, what's the appropriate course of action?
As an aside, I can find the following in AssemblyInfo.vb:
<Assembly: AssemblyVersion("1.4.4.0")>
<Assembly: ComVisible(True)>
But I can't locate any other instances of "ComVisible" in the solution.
P.S. The project has been running fine without any problems, so I was curious as to whether this 'really' was a legitimate issue or if VS Code Analysis was just being pedantic.
with thanks - Marcus |
|
Andrei Smolin
Add-in Express team
Posts: 18793
Joined: 2006-05-11
|
Hello Marcus,
1. Correct.
2. Ignore it.
Marcus from London writes:
But I can't locate any other instances of "ComVisible" in the solution.
This ComVisible instance is applied on the assembly level; no ComVisible instances are required (unless you need to mark some type or member as non-visible to COM).
Marcus from London writes:
VS Code Analysis was just being pedantic
I think so.
Andrei Smolin
Add-in Express Team Leader |
|
Marcus from London
Guest
|
Thanks Andrei, that's just wanted I wanted to hear.
Cheers - Marcus |
|
Andrei Smolin
Add-in Express team
Posts: 18793
Joined: 2006-05-11
|
You are welcome!
Andrei Smolin
Add-in Express Team Leader |
|