From c93ab140bfef50027a0d2ea596335b772d947f38 Mon Sep 17 00:00:00 2001 From: Dustin Campbell Date: Mon, 22 Jul 2024 11:54:51 -0700 Subject: [PATCH] Add latest .NET 8 runtime to global.json Since we updated to a .NET 9 SDK, the MS.ANC.Razor.Microbenchmarks.Generator unit tests have failed to run locally. This is because these test use Benchmark.NET, which performs a builder at runtime targeting .NET 8. This works fine in CI because it uses a .NET 8 SDK. This change just adds the most recent .NET 8 runtime version to the list of runtimes in Razor's global.json. So, it'll get installed into the .dotnet folder and the Microbenchmarks.Generator will run and stop reporting a spurious error. --- global.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/global.json b/global.json index 9af5736134..dc713863c6 100644 --- a/global.json +++ b/global.json @@ -5,7 +5,8 @@ "dotnet": [ "2.1.30", "$(MicrosoftNETCoreBrowserDebugHostTransportPackageVersion)", - "3.1.30" + "3.1.30", + "8.0.7" ] }, "vs": {