F#XML多行文档,Visual Studio 2017

时间:2017-06-15 10:53:27

标签: xml visual-studio f#

我想添加一个多行XML文档,当我的鼠标悬停在它上面时,它会出现在Intelli-Sense气泡中。例如见:

enter image description here

当我使用Visual Studio 2015时,以下代码有效(请参阅下面的屏幕截图),但现在当我使用Visual Studio 2017时,它不再起作用了:

请参阅VS2015和VS2017中的以下屏幕截图

VS2015:

enter image description here

VS2017:

enter image description here

在搜索了stackoverflow和其他网站之后,我尝试了一些代码,但它仍无效。

// My failed guesses    

/// This also does not work
/// & 
 This does not work
let EXAMPLE3 = 2.0


/// This also does not work
/// \n This does not work
let EXAMPLE4 = 2.0

/// This also does not work
/// <br> This does not work
let EXAMPLE5 = 2.0

/// <summary>
/// This also does not work 
/// <para> &#13; This does not work </para>
/// </summary>
let EXAMPLE6 = 2.0

How to add a line break in C# .NET documentation

Documenting F# Code

https://www.w3.org/MarkUp/html-spec/html-spec_13.html

如何在VS2017中为F#添加多行XML文档?非常感谢你的帮助。

1 个答案:

答案 0 :(得分:2)

有趣的是,留下一个完全空白的线似乎在VS 2017中起作用,但在VS 2015中却没有:

/// First paragraph
///
/// Second paragraph
let example = 1

我不知道这是否是故意的新增加。

忽略<para>标记看起来像VS2017中的错误。