Hello,
to get XML-documentation to work, we used RoslynDocumentationProvider in MetadataReference.CreateFromFile. In version 8.10 RoslynDocumentationProvider is internal. What to do now?
Hello,
to get XML-documentation to work, we used RoslynDocumentationProvider in MetadataReference.CreateFromFile. In version 8.10 RoslynDocumentationProvider is internal. What to do now?
Hi Andreas,
We made this class internal, as it has a direct replacement in Roslyn API (it was not there in the early versions of Roslyn).
You can use Microsoft.CodeAnalysis.XmlDocumentationProvider.CreateFromFile instead of RoslynDocumentationProvider in MetadataReference.CreateFromFile.
Also you can use RegisterAssembly method instead of calling MetadataReference.CreateFromFile
csParser1.Repository.RegisterAssembly(“assemblyName”) - this will use RoslynDocumentation provider internally.
For system assemblies, RoslynDocumentationProvider perform search through .NET SDK Reference assemblies, so if still need to use this class, we will make change it back to public and push an update via NuGet package.
Kind regards,
Dmitry
Hi Andreas,
We have just released 8.1.1 to NuGet, where we reverted this class from internal to public.
Kind regards,
Dmitry
Hi Dmitry,
thank you very much,