fix warnings
This commit is contained in:
@@ -15,9 +15,11 @@ public static class CsprojHelper
|
||||
return csprojList;
|
||||
}
|
||||
|
||||
public static string[] RetrieveAllCSharpProjectFullPathsFromSolution(SolutionFile solution)
|
||||
public static string[] RetrieveAllCSharpProjectFullPathsFromSolution(string solutionFilePath)
|
||||
{
|
||||
var result = SlnHelper.GetCSharpProjectObjectsFromSolutionFile(solution);
|
||||
var solutionFile = SlnHelper.ParseSolutionFileFromPath(solutionFilePath);
|
||||
ArgumentNullException.ThrowIfNull(solutionFile);
|
||||
var result = SlnHelper.GetCSharpProjectObjectsFromSolutionFile(solutionFile);
|
||||
var csprojList = result.Select(x => x.FullPath).ToArray();
|
||||
return csprojList;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using NuGet.Common;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using NuGet.Common;
|
||||
using NuGet.Protocol;
|
||||
using NuGet.Protocol.Core.Types;
|
||||
using NuGet.Versioning;
|
||||
@@ -54,7 +55,8 @@ public static class NugetLookup
|
||||
return latestStableVersion;
|
||||
}
|
||||
|
||||
public static void Throw(string packageId)
|
||||
[DoesNotReturn]
|
||||
private static void Throw(string packageId)
|
||||
{
|
||||
throw new ArgumentNullException(
|
||||
"latestVersion",
|
||||
|
||||
Reference in New Issue
Block a user