diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 8a09a43..ea98793 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -24,7 +24,7 @@ "rollForward": false }, "fantomas": { - "version": "9.0.0-alpha-001", + "version": "9.0.0-alpha-002", "commands": [ "fantomas" ], diff --git a/CHANGELOG.md b/CHANGELOG.md index 9324637..3cc55e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [0.17.3] - 2026-10-23 + +### Changed +* The `dotnet msbuild` processes that read the project run with .NET CLI telemetry turned off (`DOTNET_CLI_TELEMETRY_OPTOUT=1`), unless that variable is already set. The CLI could block for seconds at exit while it sent telemetry on a restricted network. + ## [0.17.2] - 2026-10-17 ### Changed diff --git a/src/Telplin.Core/TypedTree/Options.fs b/src/Telplin.Core/TypedTree/Options.fs index c702d06..5b9c16e 100644 --- a/src/Telplin.Core/TypedTree/Options.fs +++ b/src/Telplin.Core/TypedTree/Options.fs @@ -53,6 +53,11 @@ let dotnet_msbuild (fsproj : FullPath) (args : string) : Async = psi.RedirectStandardOutput <- true psi.RedirectStandardError <- true psi.UseShellExecute <- false + + // The dotnet CLI blocks on sending telemetry at exit, which can take seconds on a restricted network + if not (psi.Environment.ContainsKey "DOTNET_CLI_TELEMETRY_OPTOUT") then + psi.Environment.Add ("DOTNET_CLI_TELEMETRY_OPTOUT", "1") + use ps = new Process () ps.StartInfo <- psi ps.Start () |> ignore