File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,18 @@ Target "GitHubRelease" (fun _ ->
222
222
// --------------------------------------------------------------------------------------
223
223
// .NET Core and .NET Core SDK
224
224
225
- let isDotnetSDKInstalled = ( try Shell.Exec( " dotnet" , " --info" ) = 0 with _ -> false )
225
+ let isDotnetSDKInstalled =
226
+ match Fake.EnvironmentHelper.environVarOrNone " FCS_DNC" with
227
+ | Some flag ->
228
+ match bool.TryParse flag with
229
+ | true , result -> result
230
+ | _ -> false
231
+ | None ->
232
+ try
233
+ Shell.Exec( " dotnet" , " --info" ) = 0
234
+ with
235
+ _ -> false
236
+
226
237
let assertExitCodeZero x = if x = 0 then () else failwithf " Command failed with exit code %i " x
227
238
let runCmdIn workDir exe = Printf.ksprintf ( fun args -> Shell.Exec( exe, args, workDir) |> assertExitCodeZero)
228
239
let run exe = runCmdIn " ." exe
You can’t perform that action at this time.
0 commit comments