Comments on Methods/Properties for C++/CLI are not visible in the Assembly's Metadata

S

Subodh

Hi All,

I am creating a C++/CLI project which will be consumber by C#
application.
I have added comments for my properties/Methods in my C++/CLI project
using .net XML tags, but when i reference this project in my C#
application, i dont seee these comments in the intelisense as well as
the Assembly's (C++/CLI project) Metadata
Do i need to do any project settings while building my C++/CLI project
for the comments to be visible to external world, I have used a
Default CLR Console Application template for my C++/CLI project


eg.
/// <summary>
/// Protocol used to establish connection
/// </summary>
property String^ Protocol
{
String^ get()
{
return _protocol;
}

private: void set(String^ value)
{
_protocol = value;
}
}

the comment "Protocol used to establish connection" is not visible in
my C# app, in metatadata of this (C++/CLI) assembly as well as
intellisense for this property

Any help will be appreciated

Thanks and Regards,
Subodh
 
B

Ben Voigt [C++ MVP]

Subodh said:
Hi All,

I am creating a C++/CLI project which will be consumber by C#
application.
I have added comments for my properties/Methods in my C++/CLI project
using .net XML tags, but when i reference this project in my C#
application, i dont seee these comments in the intelisense as well as
the Assembly's (C++/CLI project) Metadata
Do i need to do any project settings while building my C++/CLI project
for the comments to be visible to external world, I have used a
Default CLR Console Application template for my C++/CLI project

Maybe

Configuration Properties > C/C++ > Output Files > Generate XML Documentation
Files
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top