Commit 36c678a
fix: reference all Unity managed DLLs via MSBuild glob
DocFX v2 requires Roslyn to resolve Unity types (MonoBehaviour, AudioClip,
etc.) to their fully-qualified UIDs before the xref map can link them to
docs.unity3d.com. Without assembly references, crefs become !:AudioClip
which never matches the xref map.
A MSBuild Target globs all *.dll from $(UnityManagedPath) (defaulting to
lib/UnityEngine/, populated by CI) so users never need to manually add
<Reference> entries when new Unity types are used in their scripts.
UNITY_MANAGED_PATH env var allows pointing to a local Unity installation
for development without running Docker.
.gitignore: replace broad *.csproj + negation with specific Unity-generated
patterns (Assembly-CSharp*.csproj) so DocFxForUnity.csproj stays tracked
without a fragile negation rule. Add lib/ to ignore extracted DLLs.
https://claude.ai/code/session_01N4YoJdJc2JDaoAbk5Nt8vf1 parent 9512d69 commit 36c678a
2 files changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
4 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
5 | 24 | | |
0 commit comments