Template-based properties not recognized by C# IntelliSense? (and more)
Hello,
I have several questions regarding VS 2005 Beta 2.
1) I'm trying to create an assembly in C++. My assembly contains a class, which contains a property of a type based on template class, something like this:
property Templ<Class1>^ TestProp;
Now, when I compile the assembly and try using it in a C# application, this property doesn't seem to be recognized by C#'s IntelliSense. If I type the property name manually, the program compiles and runs ok, also ildasm, Object Browser and Reflector all recognize the property. So my question is, is this behaviour intentional and is it going to change in the future?
A quick&dirty VS project exhibiting this issue can be downloadedhere.
2) The solution linked above doesn't seem to open in Visual Studio anymore. The studio hangs when loading it. I'm having the same problem with other solutions combining C++ and C# projects.
3) My real-world project using template-based properties often reports linker errors when changes are made to the template class. If I clean/rebuild the project, the linker errors are gone. Unfortunately I wasn't able to replicate this problem in the sample app linked above.
The linker errors are:
1>Stdafx.obj : error LNK2022: metadata operation failed (80131187) : Inconsistent method declarations in duplicated types (types: ClassName; methods: get_PropName): (0x06000035).
1>Stdafx.obj : error LNK2022: metadata operation failed (801311D6) : Differing number of methods in duplicated types (ClassName: (0x02000009).
Is this by design or is it a bug?
Thank you for your time.

