Home > Back-end >  JetBrains Rider - is there an easy way to generate the XML documentation file?
JetBrains Rider - is there an easy way to generate the XML documentation file?

Time:01-03

VS has a checkbox that just builds the XML documentation file from C#. I couldn't find anything like this in JetBrains Rider's build settings. What's the easiest way to do this?

documentation comments

rider example

vs example

CodePudding user response:

You have to open Solution Explorer, choose the appropriate project, go to project properties and enable generating for the specific project configuration (or all of them):

How to find xml doc settings

CodePudding user response:

Rider has public Youtrack (tool to track issues). For the future I recommend to check there before posting here, as usually it has been raised there.

Here is a link to the issue about XML documentation: https://youtrack.jetbrains.com/issue/RIDER-7433?_ga=2.64467503.1034831768.1641148468-999122819.1639050883

Workaround to achieve it is to add to the .csproj file

  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DocumentationFile>bin\Debug\netcoreapp1.1\PowerBiApiService.xml</DocumentationFile>
  </PropertyGroup>
  • Related