diff --git a/csharp/extractor/Semmle.Extraction.CSharp.Standalone/DotNet.cs b/csharp/extractor/Semmle.Extraction.CSharp.Standalone/DotNet.cs index 456c0e6f9397..b9e641a9de1a 100644 --- a/csharp/extractor/Semmle.Extraction.CSharp.Standalone/DotNet.cs +++ b/csharp/extractor/Semmle.Extraction.CSharp.Standalone/DotNet.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Diagnostics; using Semmle.Util; @@ -7,7 +7,7 @@ namespace Semmle.BuildAnalyser { internal interface IDotNet { - bool RestoreToDirectory(string project, string directory); + bool RestoreToDirectory(string project, string directory, string? pathToNugetConfig = null); bool New(string folder); bool AddPackage(string folder, string package); public IList GetListedRuntimes(); diff --git a/csharp/extractor/Semmle.Extraction.Tests/Runtime.cs b/csharp/extractor/Semmle.Extraction.Tests/Runtime.cs index fc4639ff85de..42e2b7ee847c 100644 --- a/csharp/extractor/Semmle.Extraction.Tests/Runtime.cs +++ b/csharp/extractor/Semmle.Extraction.Tests/Runtime.cs @@ -15,7 +15,7 @@ internal class DotNetStub : IDotNet public bool New(string folder) => true; - public bool RestoreToDirectory(string project, string directory) => true; + public bool RestoreToDirectory(string project, string directory, string? pathToNugetConfig = null) => true; public IList GetListedRuntimes() => runtimes; }