-
Notifications
You must be signed in to change notification settings - Fork 877
Description
Describe the bug
The projects in the solution with the code generators cause DocFX to fail to generate documentation. After updating Microsoft.CodeAnalysis.CSharp from 4.8.0 to 4.9.2, DocFX began to fail to generate documentation if there were projects that referenced a namespace generated by the code generator.
To Reproduce
Steps to reproduce the behavior:
- Clone the Terminaux project
- Install DocFX
- Execute the
docfxcommand, pointing it to theDocGen/docfx.jsonfile:docfx DocGen/docfx.json
Expected behavior
DocFX successfully recognizes all generated code and builds the documentation.
Context (please complete the following information):
- OS: Ubuntu in GitHub Actions
- Docfx version: 2.75.2
Additional context
The failed build log is here and the docfx.json is here. It worked fine before upgrading Microsoft.CodeAnalysis.CSharp from 4.8.0 to 4.9.2 with all the generated code, such as this.
It looks like that the code generators – Terminaux.ColorDataGen, Terminaux.SequenceTypesGen, and Terminaux.TermInfoGen – didn't generate anything during DocFX's build stage, hence the error CS0234: The type or namespace name 'Types' does not exist in the namespace 'Terminaux.Sequences.Builder' (are you missing an assembly reference?) errors.
Previously, all code generators worked perfectly fine as in this log.