mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C#: Do not download Microsoft.CodeAnalysis.ResxSourceGenerator when there are no resx files to process
This commit is contained in:
@@ -19,6 +19,13 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
|
||||
TemporaryDirectory tempWorkingDirectory,
|
||||
IEnumerable<string> references) : base(fileProvider, fileContent, dotnet, compilationInfoContainer, logger, tempWorkingDirectory, references)
|
||||
{
|
||||
if (fileProvider.Resources.Count == 0)
|
||||
{
|
||||
logger.LogDebug("No resources found, skipping resource extraction.");
|
||||
sourceGeneratorFolder = null;
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
// The package is downloaded to `missingpackages`, which is okay, we're already after the DLL collection phase.
|
||||
|
||||
Reference in New Issue
Block a user