You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Metadata should be generated, or if this restriction is deliberate, it should give a more detailed warning.
Actual result
Result from step 5:
Info: Config file docfx.json found, start generating metadata...
Warning: No metadata is generated for docfxbug2.
Build succeeded with warning.
Warning: No metadata is generated for docfxbug2.
There are totally 1 Warning(s), 0 Error(s)
Further technical details
On the off-chance, I added a namespace to the code in step 2. Regenerate the metadata (with -f) and bingo - it all works.
I can now submit the bug I was actually trying to reproduce to start with...
The text was updated successfully, but these errors were encountered:
Title
Hard-to-diagnose "No metadata is generated" error when code has no namespace
Functional impact
Friction when trying to reproduce a trivial issue, or when getting started from scratch for tiny simple demo purposes.
Minimal repro steps
Step 1. Create a
project.json
file of:Step 2. Create a
DocfxTest.cs
file of:Step 3. Ensure it builds:
Step 4. Create a
docfx.json
file of:Step 5. Try to generate the metadata:
Expected result
Metadata should be generated, or if this restriction is deliberate, it should give a more detailed warning.
Actual result
Result from step 5:
Further technical details
On the off-chance, I added a namespace to the code in step 2. Regenerate the metadata (with
-f
) and bingo - it all works.I can now submit the bug I was actually trying to reproduce to start with...
The text was updated successfully, but these errors were encountered: