Adding documentation to hibernate-mapping.xsd in order to enjoy IntelliSense in VS

Description

In order to see the comments as tooltips inside Visual Studio do the following:
1. Open or create a new hbm file
2. From the main menu select: XML->Schemas...
3. In the "XML Schemas" dialog select "Add...", browse to the "nhibernate-mapping.xsd" that is attached to this Issue, and click "OK"

Now you should have IntelliSense within the XML editor, including tooltips.

Environment

None

Attachments

2

Activity

Show:

Arnon Axelrod October 29, 2011 at 7:54 PM

Fabio, I just noticed the link you added to your comment when you closed the issue, and it made me believe that you didn't understand my suggestion. I know that there's already an xsd file for the hbm files that can be used in VS for auto-completion, but my point is that this xsd doesn't have COMMENTS in it. If there are comments in the xsd, VS display them along with the auto-completion. Please try it yourself with the XSD I attached, or notice the tooltip in the attached picture.

Thanks,
Arnon.

Julian Maughan March 3, 2011 at 1:14 AM

Great idea. If you could provide a 'clean' implementation that contains only the documentation annotations, I would be happy to apply it.

Not an Issue

Details

Assignee

Reporter

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created March 1, 2011 at 2:01 AM
Updated October 29, 2011 at 7:54 PM
Resolved March 4, 2011 at 2:52 PM
Who's Looking?