Skip to content

Commit

Permalink
fix: suppress assembly load warning for wpf 8.0 project
Browse files Browse the repository at this point in the history
  • Loading branch information
yufeih committed Oct 20, 2024
1 parent 3e17f63 commit 9f41104
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Docfx.Dotnet/CompilationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,12 @@ void GetReferenceAssembliesCore(PEFile assembly)
var file = assemblyResolver.FindAssemblyFile(reference);
if (file is null)
{
Logger.LogWarning($"Unable to resolve assembly reference {reference}", code: "InvalidAssemblyReference");
// Skip warning for some weired assembly references: https://github.com/dotnet/docfx/issues/9459
if (reference.Version?.ToString() != "0.0.0.0")
{
Logger.LogWarning($"Unable to resolve assembly reference {reference}", code: "InvalidAssemblyReference");
}

continue;
}

Expand Down

0 comments on commit 9f41104

Please sign in to comment.