Skip to content

Commit b560ab1

Browse files
committed
Fix condition for running dotnet source generators
1 parent 3626c81 commit b560ab1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/SourceGenerators/DotnetSourceGeneratorBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected override IEnumerable<string> Run()
3939
return [];
4040
}
4141

42-
if (!fileContent.IsAspNetCoreDetected)
42+
if (!fileContent.IsNewProjectStructureUsed)
4343
{
4444
logger.LogInfo($"Generating source files from {FileType} files is only supported for new (SDK-style) project files");
4545
return [];

csharp/ql/integration-tests/all-platforms/standalone_resx/resx.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Web">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>

0 commit comments

Comments
 (0)