From 2cdf739c38b422a0bb386a2976db502ee9b24804 Mon Sep 17 00:00:00 2001 From: KevinRansom Date: Thu, 17 Nov 2022 14:30:47 -0800 Subject: [PATCH 1/2] Caching --- .../FSharp.DependencyManager.Utilities.fs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs b/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs index 8a1b526837a..a1f516f413a 100644 --- a/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs +++ b/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs @@ -64,7 +64,6 @@ module internal Utilities = |> Array.filter (fun r -> not (String.IsNullOrEmpty(r.NugetPackageId) || String.IsNullOrEmpty(r.FullPath)) && not (equals r.IsNotImplementationReference "true") - && File.Exists(r.FullPath) && equals r.AssetType "runtime") |> Array.map (fun r -> r.FullPath) |> Array.distinct @@ -260,7 +259,7 @@ module internal Utilities = let resolutionsFile, resolutions, references, loads, includes = if success && File.Exists(outputFile) then let resolutions = getResolutionsFromFile outputFile - let references = (findReferencesFromResolutions resolutions) |> Array.toList + let references = (findReferencesFromResolutions resolutions) |> Array.filter(File.Exists) |> Array.toList let loads = (findLoadsFromResolutions resolutions) |> Array.toList let includes = (findIncludesFromResolutions resolutions) |> Array.toList (Some outputFile), resolutions, references, loads, includes From ca66bad8a6341c6ecdfea867511af75350b8f0c5 Mon Sep 17 00:00:00 2001 From: KevinRansom Date: Thu, 17 Nov 2022 20:30:40 -0800 Subject: [PATCH 2/2] fantomas --- .../FSharp.DependencyManager.Utilities.fs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs b/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs index a1f516f413a..14f55dc6fb4 100644 --- a/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs +++ b/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs @@ -259,7 +259,12 @@ module internal Utilities = let resolutionsFile, resolutions, references, loads, includes = if success && File.Exists(outputFile) then let resolutions = getResolutionsFromFile outputFile - let references = (findReferencesFromResolutions resolutions) |> Array.filter(File.Exists) |> Array.toList + + let references = + (findReferencesFromResolutions resolutions) + |> Array.filter (File.Exists) + |> Array.toList + let loads = (findLoadsFromResolutions resolutions) |> Array.toList let includes = (findIncludesFromResolutions resolutions) |> Array.toList (Some outputFile), resolutions, references, loads, includes