471,337 Members | 1,080 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

How to add struct comments?

I have several structs in a DLL. When I reference this DLL in other
projects and point to any of the structs, none of the comments I've
placed with them appear. For example:

/// <summary>
/// Tracker="someserver\CORE_SQL_TEST_1"
/// Project="someserver\CORE_SQL_TEST_1"
/// </summary>
public struct Server
{
/// <summary>
/// someserver\CORE_SQL_TEST_1
/// </summary>
public static string Tracker=@"someserver\CORE_SQL_TEST_1";
/// <summary>
/// someserver\CORE_SQL_TEST_1
/// </summary>
public static string Project=@"someserver\CORE_SQL_TEST_1";
}

None of the above will appear as it does for classes and methods. Is
this a limitation on structs?

Thanks,
Brett

Dec 9 '05 #1
3 1613
Do you get comments displayed for any classes or methods in that particular
assembly?

You need to make sure you have the XML file bearing the same name as the
assembly in order for the comments to appears.

"Brett Romero" <ac*****@cygen.com> wrote in message
news:11********************@o13g2000cwo.googlegrou ps.com...
I have several structs in a DLL. When I reference this DLL in other
projects and point to any of the structs, none of the comments I've
placed with them appear. For example:

/// <summary>
/// Tracker="someserver\CORE_SQL_TEST_1"
/// Project="someserver\CORE_SQL_TEST_1"
/// </summary>
public struct Server
{
/// <summary>
/// someserver\CORE_SQL_TEST_1
/// </summary>
public static string Tracker=@"someserver\CORE_SQL_TEST_1";
/// <summary>
/// someserver\CORE_SQL_TEST_1
/// </summary>
public static string Project=@"someserver\CORE_SQL_TEST_1";
}

None of the above will appear as it does for classes and methods. Is
this a limitation on structs?

Thanks,
Brett

Dec 9 '05 #2
There isn't an XML file there. I just comments on another class and
see they don't come through in projects that are referencing that
class. It also doesn't have an XML file.

I've added the XML file to all of my projects and rebuit each.
However, I still don't see the comments coming through. I think the
problem is more the project not refreshing its DLL references. For one
particular project, it does have the latest version of a DLL, yet the
comments are coming through. Any suggestions?

Thanks,
Brett

Dec 9 '05 #3
Seems I had to delete both my bin and obj folders before the update
came through. That's the only way I see changes in the DLLs.

Dec 10 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by jimjim | last post: by
12 posts views Thread by Dennis Schulz | last post: by
10 posts views Thread by emma middlebrook | last post: by
20 posts views Thread by ma0001yu | last post: by
5 posts views Thread by Bill Pursell | last post: by
28 posts views Thread by Bill | last post: by
12 posts views Thread by Milux | last post: by
10 posts views Thread by Raman | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.