Open viktorvan opened 5 years ago
This is the output XML documentation:
<?xml version="1.0" encoding="utf-8"?>
<doc>
<assembly><name>FSharpProject</name></assembly>
<members>
<member name="M:FSharpProject.MyType.StaticOutParam(System.String,Microsoft.FSharp.Core.byref{System.String,Microsoft.FSharp.Core.ByRefKinds.InOut})">
<summary>
This is a method with an out parameter
</summary>
<param name="s">An input string</param>
<param name="result">An output string</param>
</member>
</members>
</doc>
This is the documentation the C# compiler generates for the same class:
<?xml version="1.0"?>
<doc>
<assembly>
<name>CSharpProject</name>
</assembly>
<members>
<member name="M:CSharpProject.MyType.StaticOutParam(System.String,System.String@)">
<summary>
This is a method with an out parameter
</summary>
<param name="s">An input string.</param>
<param name="result">An output string</param>
</member>
</members>
</doc>
The type of the second parameter is different. The C# tooling probably looks for docs with the signature as seen in the second example.
BTW, it's the same the other way around:
Thanks, this should be an easy fix
XML-comments from an F# project are not showing up in a C# project when the function in question has out parameters.
Repro steps
Github-repo with reproduction https://github.com/viktorvan/FSharpXmlCommentBugRepro
Create a new F# class library
dotnet new classlib --language "F#" -n FSharpProject
Add a type with xml-comments:
///
/// This is my type
///
type MyType() =
Expected behavior
Intellisense documentation is displayed when hovering the function in the C# project.
Actual behavior
No intellisense documentation is shown.
Known workarounds
None that I have found.
Related information
Provide any related information