C#: Avoid explicitly restoring the projects in the restored solution files.

This commit is contained in:
Michael Nebel
2023-08-31 13:30:24 +02:00
parent aaaf6f8616
commit 6bfaa90fe4
5 changed files with 82 additions and 28 deletions

View File

@@ -1,6 +1,5 @@
using Xunit;
using System.Collections.Generic;
using System.Linq;
using Semmle.Util.Logging;
using Semmle.Extraction.CSharp.DependencyFetching;

View File

@@ -18,7 +18,13 @@ namespace Semmle.Extraction.Tests
public bool New(string folder) => true;
public bool RestoreToDirectory(string project, string directory, string? pathToNugetConfig = null) => true;
public bool RestoreProjectToDirectory(string project, string directory, string? pathToNugetConfig = null) => true;
public bool RestoreSolutionToDirectory(string solution, string directory, out IList<string> projects)
{
projects = new List<string>();
return true;
}
public IList<string> GetListedRuntimes() => runtimes;