This manual was useful to generate the documentation. The next steps are done:
- Add a mdoc tools folder to my solution taken from here.
- Add an empty Mdoc folder to the Bindings project. It will contain generated mdoc documentation files.
- Add the following lines to the post-build event of the Bindings project:
$(SolutionDir)tools\mdoc\mdoc update -L "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0" --out $(ProjectDir)Mdoc $(TargetPath)
$(SolutionDir)tools\mdoc\mdoc export-msxdoc $(ProjectDir)Mdoc
The first line generates or updates a bunch of XML files in the Mdoc folder. These files can be included to the project (with Build Action None) and filled with your documentation manually or using the Monodoc browser. Next time the project is rebuilt, the files will be updated without removing the already written documentation. Check the mdoc-update for details.
The second line converts the Monodoc XML files to Microsoft XML Documentation file that can be shipped along with the output DLL file. Check the mdoc-export-msxdoc for details.