你如何让XML注释出现在不同的项目(DLL)? [英] How do you get XML comments to appear in a different project (dll)?

查看:241
本文介绍了你如何让XML注释出现在不同的项目(DLL)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

/// <summary>
/// This method does something...
/// </summary>
public void DoSomething() 
{
    // code...
}

在使用这种方法/类等等......在不同的.dll文件的评论没有显示出来。

When using that method/class etc... in a different .dll the comments do not show up.

推荐答案

一对夫妇的建议:

  • 确保你的编译器配置为发出XML文档注释的汇编工作的一部分
    • 在控制这个微软的C#编译器开关是 / DOC ,也可以通过构建属性配置在项目的设置页面
    • Make sure that your compiler is configured to emit the XML doc comments as part of the compilation job
      • The Microsoft C# compiler switch that controls this is /doc, and can also be configured via the Build property page in a project's settings

      这篇关于你如何让XML注释出现在不同的项目(DLL)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆