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

Avoid multiple dotnet cli downloads (#6272)

上级 2b435007
......@@ -24,7 +24,14 @@ let isMono = false
// Utilities
// --------------------------------------------------------------------------------------
let dotnetExePath = DotNetCli.InstallDotNetSDK "2.1.403"
let dotnetExePath =
// Build.cmd normally downloads a dotnet cli to: <repo-root>\artifacts\toolset\dotnet
// check if there is one there to avoid downloading an additional one here
let pathToCli = Path.Combine(__SOURCE_DIRECTORY__, @"..\artifacts\toolset\dotnet\dotnet.exe")
if File.Exists(pathToCli) then
pathToCli
else
DotNetCli.InstallDotNetSDK "2.1.403"
let runDotnet workingDir args =
let result =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册