Repository navigation
Description
Summary
No project in the solution sets GenerateDocumentationFile, so the compiler never parses the XML
doc comments. Two consequences, one for the tests and one for consumers.
The test suite's documentation is unvalidated
The suite leans heavily on XML doc comments - almost every test carries a <summary> and a
<remarks> explaining why it exists and which issue it pins - and none of it is checked. A
malformed comment reached main-bound code in #81 and was caught by the Copilot reviewer rather
than by the build, despite TreatWarningsAsErrors being on.
Measured, on the head of #81:
| Test project setting | Duplicated </remarks> |
|---|---|
| as today | builds clean, 0 warnings |
GenerateDocumentationFile=true, NoWarn=$(NoWarn);1591 |
error CS1570: XML comment has badly formed XML |
With the comment corrected, the whole solution builds clean under that setting, so the guard costs
nothing today beyond suppressing CS1591 for the test project's undocumented members.
The package ships no documentation
Z3.Linq is packable, and its lib/net10.0 folder contains only the assembly:
32256 lib/net10.0/Z3.Linq.dll
There is no Z3.Linq.xml, so consumers get no IntelliSense for any public API, and the doc
comments that do exist in the library - including the ones added across this stack explaining
unconstrained-symbol behaviour - never reach anyone outside the repository.
Turning GenerateDocumentationFile on for the library produces 44 CS1591 (missing XML comment
for a publicly visible type or member) and no malformed-XML errors, so the existing comments are
sound and the work is 44 members' worth of writing, not a repair job.
Suggested fix
Two separable pieces:
- The guard.
GenerateDocumentationFile=trueplusNoWarn=$(NoWarn);1591on the test project.
Free today, and turns malformed test documentation into a build error. - The package.
GenerateDocumentationFile=trueonZ3.Linq, and document the 44 public
members CS1591 names. Larger, and worth doing before the release hold in Hold Z3.Linq releases until Microsoft.Z3 is published to nuget.org #60 lifts, since the
first published 2.x is the first chance consumers get to see any of it.
Whether these belong in Directory.Build.props or per-project depends on whether Z3.Linq.Examples
and Z3.Linq.Demo are expected to carry docs too.
Found while addressing the Copilot review on #81.
Activity
Remove a duplicated remarks tag
Say what OrderBy actually returns
HowardvanRooijen commentedon Sep 1, 2026
An update on the second half of this, measured again on top of #86 since the codebase has gained a
fair number of
<see cref="..."/>references since this was raised.With
GenerateDocumentationFile=trueandNoWarn=$(NoWarn);1591on both the library and the testproject, the whole solution builds clean: no CS1570 (malformed XML) and no CS1574
(unresolvable cref), under
TreatWarningsAsErrors. So the existing comments are sound and the guardis still free to switch on for the test project - the only cost remains the 44 CS1591 on the
library's public members, which is real writing rather than a setting.
I verified the check has teeth before trusting that result, by breaking one cref deliberately and
confirming
error CS1574: XML comment has cref attribute 'NoSuchMember' that could not be resolved.Worth doing: my first two attempts at that control silently edited nothing - once because the csproj
uses CRLF and the pattern did not match, once because the substitution targeted the wrong line - and
both times the clean build looked like a pass.
One limit worth recording here. The defect Copilot found on #86 was an inaccurate
<returns>- theXML was well formed and the crefs resolved, the sentence was just about the wrong method's result.
Turning this setting on would not have caught it. The guard is worth having for the malformed-XML
class of defect, which is what it found on #81; it is not a substitute for reading the comment.
Read the decimal element the loop selected (#81)
Report satisfiability separately from the solution (#86)