Is there a tag for a file reference in a xml code comment? The file is a sql script file. Just wondering if there is a better way than something like this
///<summary>
///please have a look at c:\code\project1\sql\file1.sql
///</summary>
You can mix in elements from other namespaces, including xhtml, so
///<summary>
///please have a look at <a href="file:///c:/code/project1/sql/file1.sql">file:///c:/code/project1/sql/file1.sql</a>.
///</summary>
Is allowed, though whether it's made use of well or not depends on what you use to turn the XML into something more readable. Tooltip-use at least in my IDE ignores the tag and displays the text inside (which is what I'd want in a tool-tip).
Of course, it's not much use on a machine that doesn't have the correct c:\\code\\project1\\sql\\file1.sql
你可以使用文件URI,这使它可以在visual studio中点击:
file:///c:/code/project1/sql/file1.sql
The most commonly used tags are listed at http://msdn.microsoft.com/en-us/library/5ast78ax(v=vs.71).aspx . It also mentions that it will process "any tag that is valid XML" so you aren't limited to these.
There is such a things like special tag for file reference in XML. It is meta language without such limitations.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.