简体   繁体   English

JetBrains Rider - 有没有一种简单的方法可以生成 XML 文档文件?

[英]JetBrains Rider - is there an easy way to generate the XML documentation file?

VS has a checkbox that just builds the XML documentation file from C#. VS 有一个复选框,它只从 C# 构建 XML 文档文件。 I couldn't find anything like this in JetBrains Rider's build settings.我在 JetBrains Rider 的构建设置中找不到类似的东西。 What's the easiest way to do this?最简单的方法是什么?

文档评论

骑手示例

与示例

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):您必须打开解决方案资源管理器,选择适当的项目 go 到项目属性并为特定项目配置(或全部)启用生成:

如何查找 xml 文档设置

Rider has public Youtrack (tool to track issues). Rider 拥有公开的 Youtrack(跟踪问题的工具)。 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 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实现它的解决方法是添加到 .csproj 文件

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM