Multiline XML Comments in VB.NET and Visual Studio

2019-01-17 22:11发布

问题:

I'm trying to put newlines in my XML Comments in VB.Net. I've read two other posts about C#,

XML multiline comments in C# - what am I doing wrong?

Adding line breaks to comments for Intellisense

But the suggested <para> or <br/> tags don't work. This,

    ''' <summary>
    ''' <para>Line one</para><br />
    ''' <para>Line two</para><br />
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Public Property Speed As Double

Still appears like this:

How can I make this work?

回答1:

As time goes by, bugs get fixed. This works now in Visual Studio 2015 Update 3:

(It might work in earlier versions as well, but I don't have them installed anymore.)



回答2:

Now its better to use VS 2012 which will do the same as it does in C#