Problem with generated type lib -
06-12-2009
, 09:55 AM
Hi all,
I am developing a COM visible .Net component and ran into a strange problem.
Here is the barebone of the issue. Interface looks as follows:
public IInterface1
{
string Abc { get; set; }
}
Everything goes OK, but once I add some method which takes a parameter
with similar name as the property above, the property name screws up in the
generated tlb file. The method is on a different interface and even
inside a different namespace:
public IInterface2
{
void SomeMethod(string abc);
}
Now, generated idl shows property name 'abc' on IInterface1 (note the case),
and client code no longer understands get_Abc obviously.
To make things even more confusing I should add that this only
happens on two out of seven machines I tried it on. All of them
have .Net 2.0 with SP installed (the build target platform)
and use VS2008.
I would appreciate any light shed on this one.
Andrei |