mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Fix condition for running dotnet source generators
This commit is contained in:
@@ -39,7 +39,7 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
|
||||
return [];
|
||||
}
|
||||
|
||||
if (!fileContent.IsAspNetCoreDetected)
|
||||
if (!fileContent.IsNewProjectStructureUsed)
|
||||
{
|
||||
logger.LogInfo($"Generating source files from {FileType} files is only supported for new (SDK-style) project files");
|
||||
return [];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
|
||||
Reference in New Issue
Block a user