简体   繁体   中英

Why I can't see xml comments from external library?

Is it normal I can't see xml comments from external libraries? For example I have an external library with xml comments on methods. After making a reference to this library I was hoping that xml comments appears when I make usage of the external library; But nothing appear in the tooltip :

截图

Maybe I have to do something special when I make the build of the lib.

First you need to enabled "XML File Documentation" generation. You can find it in the Settings of the Project under the section Build.

Then will the compiler generate an XML File containing your documentation of the assembly on build.

If you reference the assembly in another project and you want to see the documentation of types, methods, etc. in IntelliSense you need to store the xml documentation file in the same folder, where the referenced assembly is stored.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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