Skip to content

Commit

Permalink
Resolve bug in CSharp Parser (#8594)
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu authored Jul 10, 2024
1 parent a6a0cd3 commit 3e26ff2
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,12 @@ static async Task HandlePackageFileParsing(Stream stream, FileInfo packageFilePa
}
}

dependencyFilesTempDir = await ExtractNugetDependencies(dependencies).ConfigureAwait(false);
var dependencyFilePaths = Directory.EnumerateFiles(dependencyFilesTempDir, "*.dll", SearchOption.AllDirectories);
IEnumerable<string> dependencyFilePaths = new List<string>();
if (dependencies != null && dependencies.Any())
{
dependencyFilesTempDir = await ExtractNugetDependencies(dependencies).ConfigureAwait(false);
dependencyFilePaths = Directory.EnumerateFiles(dependencyFilesTempDir, "*.dll", SearchOption.AllDirectories);
}
var assemblySymbol = CompilationFactory.GetCompilation(dllStream, docStream, dependencyFilePaths);

if (assemblySymbol == null)
Expand Down

0 comments on commit 3e26ff2

Please sign in to comment.