diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 41a464f..46226f0 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -28,7 +28,7 @@ jobs: - name: Pack run: dotnet pack -c Release -o .artifacts --no-restore --no-build - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: nuget path: .artifacts/*.nupkg diff --git a/src/Depends.Core/DependencyAnalyzer.cs b/src/Depends.Core/DependencyAnalyzer.cs index 8d02b44..73f3bf6 100644 --- a/src/Depends.Core/DependencyAnalyzer.cs +++ b/src/Depends.Core/DependencyAnalyzer.cs @@ -152,7 +152,7 @@ private static async Task ResolvePackage(PackageIdentity package, { await Task.WhenAll(dependencyInfo.Dependencies.Select(dependency => { - return DependencyAnalyzer.ResolvePackage(new PackageIdentity(dependency.Id, dependency.VersionRange.MinVersion), + return ResolvePackage(new PackageIdentity(dependency.Id, dependency.VersionRange.MinVersion), framework, cacheContext, logger, repositories, availablePackages); })); } @@ -170,7 +170,7 @@ public DependencyGraph AnalyzeSolution(string solution, string framework = null) var builder = new DependencyGraph.Builder(solutionNode); foreach (var project in analyzerManager.Projects.Where(p => p.Value.ProjectInSolution.ProjectType == SolutionProjectType.KnownToBeMSBuildFormat)) { - builder = DependencyAnalyzer.CreateBuilder(project.Value, project.Key, builder, framework); + builder = CreateBuilder(project.Value, project.Key, builder, framework); } return builder.Build(); @@ -194,7 +194,7 @@ public DependencyGraph Analyze(string projectPath, string framework = null) } var projectAnalyzer = analyzerManager.GetProject(projectPath); - return DependencyAnalyzer.CreateBuilder(projectAnalyzer, projectPath, null, framework).Build(); + return CreateBuilder(projectAnalyzer, projectPath, null, framework).Build(); } private static DependencyGraph.Builder CreateBuilder(IProjectAnalyzer projectAnalyzer, string projectPath, DependencyGraph.Builder builder = null, string framework = null)