Skip to content

Commit 37535d1

Browse files
committed
C#: Make WithDotNet public
1 parent 3b010a2 commit 37535d1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,16 @@ public BuildScript Analyse(IAutobuilder<CSharpAutobuildOptions> builder, bool au
7070
});
7171
}
7272

73-
private static BuildScript WithDotNet(IAutobuilder<AutobuildOptionsShared> builder, Func<string?, IDictionary<string, string>?, BuildScript> f)
73+
/// <summary>
74+
/// Returns a script that attempts to download relevant version(s) of the
75+
/// .NET Core SDK, followed by running the script generated by <paramref name="f"/>.
76+
///
77+
/// The arguments to <paramref name="f"/> are the path to the directory in which the
78+
/// .NET Core SDK(s) were installed and any additional required environment
79+
/// variables needed by the installed .NET Core (<code>null</code> when no variables
80+
/// are needed).
81+
/// </summary>
82+
public static BuildScript WithDotNet(IAutobuilder<AutobuildOptionsShared> builder, Func<string?, IDictionary<string, string>?, BuildScript> f)
7483
{
7584
var installDir = builder.Actions.PathCombine(builder.Options.RootDirectory, ".dotnet");
7685
var installScript = DownloadDotNet(builder, installDir);

0 commit comments

Comments
 (0)