c# - 为什么我的代码块没有在 SandcaSTLe 帮助文件中呈现?

标签 c# sandcastle

我正在使用 Codeplex 中与 VS.NET 2012 集成的当前版本的 SandcaSTLe 来构建 .cmh帮助文件。正在创建帮助文件,但我似乎无法获得任何 <code>在帮助文件中发出的 block 。我一直在使用以下简单示例:

/// <summary>
/// This is the summary 
/// </summary>
/// <code>var s;</code>
public string SomeValue { get; set; }

当我查看输出 .chm 文件时,var s;代码不存在任何地方。我已完成以下操作:

该示例显然是一个简化版本,但我只是想在这里了解基础知识。我做错了什么或遗漏了什么?

最佳答案

我认为代码标签不允许单独存在,请尝试将其放入 <example> 中标签,例如 <example><code>var s;</code></example> 。所以这应该有效:

/// <summary>
/// This is the summary 
/// </summary>
/// <example>
/// <code>var s;</code>
/// </example>
public string SomeValue { get; set; }

关于c# - 为什么我的代码块没有在 SandcaSTLe 帮助文件中呈现?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15508997/

相关文章:

c# - SandCaSTLe HTML 输出多个命名空间

c# - 什么是 System.Web.Hosting 的 Nuget 包

c# - 使用正则表达式在 Controller 中进行验证

c# - XML 注释 - MSDN 文档 "Note"部分——如何复制它?

c# - 使用 sandcaSTLe 将示例代码放入文档中

.net - 代码文档: How much is too much?

c# - 从 VS 2010 C# XML 文档生成 HTML/帮助文件

C#简单3D碰撞检测

c# - 使用另一个线程修改绑定(bind)数据表时不刷新数据网格

C# 将十六进制字符串数组转换为字节数组