diff --git a/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/Sdk.cs b/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/Sdk.cs index ebfce861ecf6..aa0f7c3c9bf8 100644 --- a/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/Sdk.cs +++ b/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/Sdk.cs @@ -63,10 +63,10 @@ private static HashSet ParseSdks(IList listed) } var path = Path.Combine(sdk.FullPath, "Roslyn", "bincore", "csc.dll"); - logger.LogInfo($"Source generator CSC: '{path}'"); + logger.LogDebug($"Source generator CSC: '{path}'"); if (!File.Exists(path)) { - logger.LogInfo($"csc.dll not found at '{path}'."); + logger.LogWarning($"csc.dll not found at '{path}'."); return null; } diff --git a/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/SourceGenerators/DotnetSourceGeneratorBase.cs b/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/SourceGenerators/DotnetSourceGeneratorBase.cs index 6a09e87e92cd..3d774020e4e9 100644 --- a/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/SourceGenerators/DotnetSourceGeneratorBase.cs +++ b/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/SourceGenerators/DotnetSourceGeneratorBase.cs @@ -34,19 +34,17 @@ protected override IEnumerable Run() var additionalFiles = AdditionalFiles; if (additionalFiles.Count == 0) { - logger.LogDebug($"No {FileType} files found."); + logger.LogDebug($"No {FileType} files found. Skipping source generation."); return []; } - logger.LogInfo($"Found {additionalFiles.Count} {FileType} files."); - if (!fileContent.IsAspNetCoreDetected) { logger.LogInfo($"Generating source files from {FileType} files is only supported for new (SDK-style) project files"); return []; } - logger.LogInfo($"Generating source files from {FileType} files..."); + logger.LogInfo($"Generating source files from {additionalFiles.Count} {FileType} files..."); try { diff --git a/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/SourceGenerators/DotnetSourceGeneratorWrapper/DotnetSourceGeneratorWrapper.cs b/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/SourceGenerators/DotnetSourceGeneratorWrapper/DotnetSourceGeneratorWrapper.cs index fb269a48f8da..75f3b9a40e21 100644 --- a/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/SourceGenerators/DotnetSourceGeneratorWrapper/DotnetSourceGeneratorWrapper.cs +++ b/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/SourceGenerators/DotnetSourceGeneratorWrapper/DotnetSourceGeneratorWrapper.cs @@ -45,7 +45,7 @@ public IEnumerable RunSourceGenerator(IEnumerable additionalFile try { - logger.LogInfo("Produce analyzer config content."); + logger.LogInfo("Producing analyzer config content."); GenerateAnalyzerConfig(additionalFiles, analyzerConfig); logger.LogDebug($"Analyzer config content: {File.ReadAllText(analyzerConfig)}");