使用xml给类、方法、属性添加智能感知功能

To set this compiler option in the Visual Studio development environment (命令行方式:csc XMLsample.cs /doc:XMLsample.xml)

  • Open the project's Property Pages dialog box. For details, see Setting Visual C# Project Properties.
  • Click the Configuration Properties folder.
  • Click the Build property page.
  • Modify the XML Documentation File property.

若要将生成的 .xml 文件用于智能感知功能,请使该 .xml 文件的文件名与要支持的程序集同名,然后确保该 .xml 文件放入与该程序集相同的目录中。这样,在 Visual Studio 项目中引用程序集时,也可找到该 .xml 文件

你可能感兴趣的:(xml)