What's the XML file that comes together with a .NET assembly file?

拥有回忆 提交于 2019-12-03 04:39:43

It is the code comments / intellisense file, and is used by the IDE (i.e. Visual Studio), not the runtime - it is where all the extended method / parameter / type descriptions etc come from.

You do not need to deploy it with your binary, but it does no harm either. It is also entirely optional in the IDE - just: intellisense will be less informative to you without it (it will just display te names and types, etc - not the more verbose method descriptions).

In your own library, use the /// syntax to write your own code comments, and enable the XML file generation in project-properties.

George C K

This is the XML documentation for that assembly. This is only used for Intellisense in VisualStudio. Refer this answer for details.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!