未验证 提交 4e7b3cb9 编写于 作者: K Kevin Ransom (msft) 提交者: GitHub

Caching (#14345)

* Caching

* fantomas
上级 88080293
......@@ -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,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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册