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 _ ->
222222// --------------------------------------------------------------------------------------
223223// .NET Core and .NET Core SDK
224224
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+
226237let assertExitCodeZero x = if x = 0 then () else failwithf " Command failed with exit code %i " x
227238let runCmdIn workDir exe = Printf.ksprintf ( fun args -> Shell.Exec( exe, args, workDir) |> assertExitCodeZero)
228239let run exe = runCmdIn " ." exe
You can’t perform that action at this time.
0 commit comments