Skip to content

Commit bbe90be

Browse files
committed
Wrap StandaloneBuildRule in WithDotNet
1 parent dd27442 commit bbe90be

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

csharp/autobuilder/Semmle.Autobuild.CSharp/CSharpAutobuilder.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ public override BuildScript GetBuildScript()
4848
attempt = new BuildCommandRule(DotNetRule.WithDotNet).Analyse(this, false) & CheckExtractorRun(true);
4949
break;
5050
case CSharpBuildStrategy.Buildless:
51-
// No need to check that the extractor has been executed in buildless mode
52-
attempt = new StandaloneBuildRule().Analyse(this, false);
51+
attempt = DotNetRule.WithDotNet(this, env =>
52+
{
53+
// No need to check that the extractor has been executed in buildless mode
54+
return new StandaloneBuildRule().Analyse(this, false);
55+
});
5356
break;
5457
case CSharpBuildStrategy.MSBuild:
5558
attempt = new MsBuildRule().Analyse(this, false) & CheckExtractorRun(true);

0 commit comments

Comments
 (0)