dotnet / dotnet/docfx

[Bug] Invalid link warnings from compiler generated fields

Open
#10,570 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

**Describe the bug**
When compiling the documentation, I get invalid link warnings from what I think are compiler generated fields, similar to this:
```
warning InvalidBookmark: Invalid link: 'OvrCamera.<OnLevelWasLoaded>m__0(string)'. The file api/Global.OvrCamera.yml doesn't contain a bookmark named 'OvrCamera__OnLevelWasLoaded_m__0_System_String_'.
```

**To Reproduce**
Steps to reproduce the behavior:
1. Generate docs from an assembly

**Context (please complete the following information):**
- OS: Debian 12
- Docfx version: 2.78.3

**Additional context**
I don't fully understand how these fields work, and I don't know whether this is the intended behaviour, but I would be happy if there was an option to ignore these fields, assuming it's possible to identify them.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.