Skip to content

Commit

Permalink
Caching (#14345)
Browse files Browse the repository at this point in the history
* Caching

* fantomas
  • Loading branch information
KevinRansom authored Nov 18, 2022
1 parent 8808029 commit 4e7b3cb
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -260,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.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
Expand Down

0 comments on commit 4e7b3cb

Please sign in to comment.