Skip to content

Commit

Permalink
And again
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGilham committed Jun 3, 2018
1 parent bf2c44b commit bf86670
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Build/actions.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,11 @@ open System.Runtime.CompilerServices
|> (HandleResults msg)

let RunRaw (f:Fake.Core.ProcStartInfo -> Fake.Core.ProcStartInfo) msg =
Fake.Core.Process.execWithResult f (TimeSpan.FromMinutes 10.0)
// C:\Users\appveyor\AppData\Local\Microsoft\dotnet
let prep = if Environment.isWindows && Directory.Exists "C:/Users/appveyor/AppData/Local/Microsoft\dotnet"
then f >> (Fake.Core.Process.setEnvironmentVariable "DOTNET_ROOT" "C:/Users/appveyor/AppData/Local/Microsoft/dotnet")
else f
Fake.Core.Process.execWithResult prep (TimeSpan.FromMinutes 10.0)
|> (HandleResults msg)

let RunDotnet (o:DotNet.Options -> DotNet.Options) cmd args msg =
Expand Down

0 comments on commit bf86670

Please sign in to comment.