NormandErwan / UnityXrefMaps

Reference map files to Unity API to use with DocFX
MIT License
14 stars 3 forks source link

Some Unity uids could not be resolved by xrefmap #4

Open filzrev opened 8 months ago

filzrev commented 8 months ago

On my environment.

<xref:UnityEngine.GameObject> failed to resolve the link. But <xref:UnityEngine.Behaviour> works as expected.

This seems to be caused by the sort order of xrefmap.yml file. docfx expecting sorted xrefmap should be sorted by Uid with InvariantCulture string comparer.

But the current contents of xrefmap.json seem to be sorted by other string comparer. And it causes failure search uid with `BinarySearch'. https://github.com/dotnet/docfx/blob/7d511fb032de82d0105f08e1f649b2b066697397/src/Docfx.Build/XRefMaps/BasicXRefMapReader.cs#L36