14

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

2 Answers 2

21

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

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks! It wasn't coming up in the other options menu's.
Yes, I have noticed =) How you tried to find it? Via search in settings?
Yeah, I had tried searching for a few queries and gave up after 10-15 minutes. Maybe I was searching the wrong terms though. Would be great if it came up in the search box.
1

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>

3 Comments

Thanks, I posted a comment there as suggested. That workaround is from 2017, hoping there has been more traction since then.
You are right this one is quite out-of-date it seems that this now the up-to-date feature request: youtrack.jetbrains.com/issue/…. But still not implemented as of now
why you wnat empty doc? if you want to write them you can type /// above the method and Rider do generation for that method.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.