From 0364d810b26672c86af6efe6d01ac679857616cd Mon Sep 17 00:00:00 2001 From: Richard Webb Date: Tue, 24 Dec 2024 17:00:41 +0000 Subject: [PATCH] Try to work around https://github.com/dotnet/sdk/issues/40655 --- .../Fake.Core.IntegrationTests/SimpleHelloWorldTests.fs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/test/Fake.Core.IntegrationTests/SimpleHelloWorldTests.fs b/src/test/Fake.Core.IntegrationTests/SimpleHelloWorldTests.fs index 72b5eb2ecdc..653d3781fcf 100644 --- a/src/test/Fake.Core.IntegrationTests/SimpleHelloWorldTests.fs +++ b/src/test/Fake.Core.IntegrationTests/SimpleHelloWorldTests.fs @@ -47,13 +47,19 @@ let tests = prepare scenario let scenarioPath = resolvePath scenario "" // dotnet tool install --version 5.19.0-alpha.local.1 fake-cli --add-source /e/Projects/FAKE/release/dotnetcore/ + + // Work around https://github.com/dotnet/sdk/issues/40655 by specifying the tool manifest explicitly + let manifestPath = Path.Combine(scenarioPath, ".config", "dotnet-tools.json") + [ yield! [ "tool" "install" "--prerelease" "fake-cli" "--add-source" - releaseDotnetCoreDir ] ] + releaseDotnetCoreDir + "--tool-manifest" + manifestPath ] ] |> runDotNetRaw |> CreateProcess.withWorkingDirectory scenarioPath |> CreateProcess.ensureExitCode