Understand the Win2D documentation build pipeline
winappsdk/mainThe Win2D documentation is generated through a multi-step pipeline that synchronizes the compiled WinRT API surface with XML documentation files:
- API Extraction: The
ExtractAPISurfacetool reflects over compiled WinRT binaries to generate clean C# code (without implementation details) inobj\docs. - Placeholder Generation: The C# compiler creates temporary assemblies and placeholder XML documentation files from the extracted code.
- Doc Comparison: The
DocDifftool compares the real documentation comments (stored inwinrt\docsrcas XML) against the generated placeholders to detect missing or stale documentation. - Preprocessing: The
PreprocessDocstool processes thedocsrcfiles, injecting boilerplate text for tags like[Win10]and[Experimental]. - HTML Generation: The
Sandcastletool (SHFB) combines the temporary assemblies,docsrcXML files, and.amloverview pages to produce HTML documentation inbin\docs. - IntelliSense Generation: The
MergeIntellisensetool merges all XML files from thedocsrcfolders into a single XML file per assembly, which is placed inbin\intellisensefor use by Visual Studio.