Back to Writing
NOTEScsharpdllxml-documentationunity

Including XML Documentation with C# DLLs in Unity

October 3, 2020Updated Feb 17, 2026

![](

5bJg98pxW3a-_t9J1Mg.9wyUOlb_XOVL0imG44BRzQ_tU95M-E1L2rvKd3TKM8cg.PNG.cdw0424/image.png?type=w966)

In Visual Studio's Solution Explorer,

right-click on the project.

A menu will appear at the bottom with the Properties option. Click it.

![](

EQmlDIZkPOCTJc2gZQg.m0qBNIJb2rIHuul5B-W9c4R4FKKl0jRlhZeD-rae3SQg.PNG.cdw0424/image.png?type=w966)

A window like this will appear. Click on it, and:

![](

JzKRc8Dvo5TSfr5z9sg.vmSF08C-icleVqkPMJ-CcDlV3NgAY2e-9Albgs0VrzUg.PNG.cdw0424/image.png?type=w966)

Navigate to the Build tab.

![](

105dZXGcrGk7CNVJI4g.nSlU8iBFRdpEmCPMVpUlEmxFxGV8Aio0--snPtM8HzAg.PNG.cdw0424/image.png?type=w966)

Check the XML documentation file checkbox.

![](

BYxc1uaFSiYYe9wh4sg.42Q1iB0CWAK4uPPy9J9Gu-Mw2voC9xXQreAnbONMaf8g.PNG.cdw0424/image.png?type=w966)

When you build, you'll see that the XML documentation with summary tags is generated alongside the DLL.

![](

K_FrGnGYtGRKGAexkUg.hhLfD0spUURycJ5QKNLjF_rs0pZHMstU1D0BsHwNX08g.PNG.cdw0424/image.png?type=w966)

You can see that both the DLL and XML are built as separate files.

![](

_HSSRHGV-SoZmZossYg.mhowTtoyU9qJqOSr8fbkvxO62pZkOKh23LYZgIplZv8g.PNG.cdw0424/image.png?type=w966)

Place both files in the Assets > Plugins folder.

If the Plugins folder doesn't exist, create one. I created an additional BTAI folder to keep things organized. The key point is that the files must be under Assets > Plugins. You can create additional subfolders inside it.

![](

Bv5_uojw-qIkyaZD1cg.JFrxcYofuzwe8d3mISX47RAbj7bK8LMLpABO-2IgLi4g.PNG.cdw0424/image.png?type=w966)

Once you place both files and start using them:

![](

eIruu1EHX6Kpi3yBUIg.TNvoR9VZ8XHin1f4_gmzK7oOFszLd_l9CeCbWz0V97kg.PNG.cdw0424/image.png?type=w966)

You can confirm that the XML documentation written for the DLL is now displayed alongside the code.

References:

How to include documentation in DLL to show method summary in Unity3D

C# 10.5 XML Documentation Files - Always Holiday