We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a7a2d9 commit 43493c4Copy full SHA for 43493c4
src/Docfx.Dotnet/ManagedReference/Visitors/SymbolVisitorAdapter.cs
@@ -731,6 +731,12 @@ string ResolveCode(string source)
731
? Path.GetDirectoryName(Path.GetFullPath(Path.Combine(EnvironmentContext.BaseDirectory, sourcePath)))
732
: null);
733
734
+ if (basePath == null)
735
+ {
736
+ Logger.LogWarning($"Source file '{source}' not found.", code: "CodeNotFound");
737
+ return null;
738
+ }
739
+
740
var path = Path.GetFullPath(Path.Combine(basePath, source));
741
if (!File.Exists(path))
742
{
0 commit comments