We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 558bb68 commit 951b60dCopy full SHA for 951b60d
build.fsx
@@ -217,7 +217,7 @@ Target "GitHubRelease" (fun _ ->
217
// .NET CLI and .NET Core
218
219
// TODO: rework next line when workaround is available
220
-let isDotnetCliInstalled = buildServer = BuildServer.LocalBuild && Shell.Exec("dotnet", "--info") = 0
+let isDotnetCliInstalled = (try buildServer = BuildServer.LocalBuild && Shell.Exec("dotnet", "--info") = 0 with _ -> false)
221
let assertExitCodeZero x = if x = 0 then () else failwithf "Command failed with exit code %i" x
222
223
Target "DotnetCliBuild" (fun _ ->
0 commit comments