Open ibruynin opened 4 years ago
Please find the complete repro case here:
dotnet new classlib -n docfxns1
Write-Output "using System;`n`n`nnamespace docfxns1`n{`n public class AbstractApi`n {`n public void ExistingMethod()`n {`n`n }`n }`n}`n" | Set-Content -Path "docfxns1\\Class1.cs"
dotnet new classlib -n docfxns2
Write-Output "using docfxns1;`nusing System;`n`nnamespace docfxns2`n{`n public class ConfigurationApi : AbstractApi`n {`n public void NewMethod() { }`n }`n}" | Set-Content -Path "docfxns2\\Class1.cs"
docfx init -q
robocopy docfxns1 docfx_project\src\docfxns1 /mir
robocopy docfxns2 docfx_project\src\docfxns2 /mir
cd docfx_project
docfx docfx.json --serve
the inheritance tree shows Object > ConfigurationApi
mkdir c:\temp\localnuget
cd docfxns1
dotnet build
dotnet pack -p:PackageVersion=1.1.0
dotnet nuget push bin\Debug\docfxns1.1.1.0.nupkg -s c:\temp\localnuget
cd ..
cd docfxns2
(Get-Content -Path "docfxns2.csproj").Replace("</PropertyGroup>", "</PropertyGroup><ItemGroup><PackageReference Include=""docfxns1"" Version=""1.1.0"" /></ItemGroup>") | Set-Content -Path "docfxns2.csproj"
dotnet build
cd ..
docfx init -q
robocopy docfxns1 docfx_project\src\docfxns1 /mir
robocopy docfxns2 docfx_project\src\docfxns2 /mir
cd docfx_project
docfx docfx.json --serve
the inheritance tree shows Object > AbstractApi > ConfigurationApi (as expected)
Does it work if you add a ProjectReference
?
Operation System: Windows
DocFX Version Used: 2.50.0.0
Template used: default
Steps to Reproduce:
Expected Behavior:
The inheritance tree on ConfigurationApi should render properly
Actual Behavior:
When running docfx without compiled code.
The inheritance tree is not rendered properly System.Object > ConfigurationApi
When running docfx with compiled code.
The inheritance tree is rendered properly System.Object > AbstractApi > ConfigurationApi