diff --git a/build.fsx b/build.fsx index ba1332cd0dd..c8af12b64f1 100644 --- a/build.fsx +++ b/build.fsx @@ -493,14 +493,12 @@ Target "DocFx" (fun _ -> ) FinalTarget "KillCreatedProcesses" (fun _ -> - log "Killing processes started by FAKE:" - startedProcesses |> Seq.iter (fun (pid, _) -> logfn "%i" pid) - killAllCreatedProcesses() - log "Killing any remaining dotnet and xunit.console.exe processes:" - getProcessesByName "dotnet" |> Seq.iter (fun p -> logfn "pid: %i; name: %s" p.Id p.ProcessName) - killProcess "dotnet" - getProcessesByName "xunit.console" |> Seq.iter (fun p -> logfn "pid: %i; name: %s" p.Id p.ProcessName) - killProcess "xunit.console" + log "Shutting down dotnet build-server" + let result = ExecProcess(fun info -> + info.FileName <- "dotnet" + info.WorkingDirectory <- __SOURCE_DIRECTORY__ + info.Arguments <- "build-server shutdown") (System.TimeSpan.FromMinutes 2.0) + if result <> 0 then failwithf "dotnet build-server shutdown failed" ) //-------------------------------------------------------------------------------- diff --git a/build.ps1 b/build.ps1 index 11203dd7bfd..6a09676c40a 100644 --- a/build.ps1 +++ b/build.ps1 @@ -32,12 +32,12 @@ Param( $FakeVersion = "4.63.0" $NBenchVersion = "1.0.1" $DotNetChannel = "LTS"; -$DotNetVersion = "2.0.0"; +$DotNetVersion = "2.1.500"; $DotNetInstallerUri = "https://raw.githubusercontent.com/dotnet/cli/v$DotNetVersion/scripts/obtain/dotnet-install.ps1"; $NugetVersion = "4.3.0"; $NugetUrl = "https://dist.nuget.org/win-x86-commandline/v$NugetVersion/nuget.exe" $ProtobufVersion = "3.4.0" -$DocfxVersion = "2.21.1" +$DocfxVersion = "2.40.5" # Make sure tools folder exists $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent diff --git a/build.sh b/build.sh index 272457beb3e..8062cd2daaa 100755 --- a/build.sh +++ b/build.sh @@ -11,9 +11,9 @@ NUGET_URL=https://dist.nuget.org/win-x86-commandline/v4.3.0/nuget.exe FAKE_VERSION=4.63.0 FAKE_EXE=$TOOLS_DIR/FAKE/tools/FAKE.exe DOTNET_EXE=$SCRIPT_DIR/.dotnet/dotnet -DOTNET_VERSION=2.0.0 +DOTNET_VERSION=2.1.500 +DOTNET_INSTALLER_URL=https://raw.githubusercontent.com/dotnet/cli/v$DOTNET_VERSION/scripts/obtain/dotnet-install.sh DOTNET_CHANNEL=LTS -DOTNET_INSTALLER_URL=https://raw.githubusercontent.com/dotnet/cli/v2.0.0/scripts/obtain/dotnet-install.sh PROTOBUF_VERSION=3.4.0 # Define default arguments.