From b59e4523c323b0f9826b5b06b0c074bd35d5b438 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Sat, 29 Nov 2025 10:27:37 -0500 Subject: [PATCH] Update Microsoft.VisualStudio.Threading.Analyzers to latest --- eng/packages/General.props | 2 +- .../Microsoft.Extensions.Hosting.Testing/FakeHost.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/eng/packages/General.props b/eng/packages/General.props index 4dafd30a2fa..de5b7741ac1 100644 --- a/eng/packages/General.props +++ b/eng/packages/General.props @@ -44,7 +44,7 @@ - + diff --git a/src/Libraries/Microsoft.Extensions.Hosting.Testing/FakeHost.cs b/src/Libraries/Microsoft.Extensions.Hosting.Testing/FakeHost.cs index 068f1ca9a45..1c306f456bc 100644 --- a/src/Libraries/Microsoft.Extensions.Hosting.Testing/FakeHost.cs +++ b/src/Libraries/Microsoft.Extensions.Hosting.Testing/FakeHost.cs @@ -118,7 +118,9 @@ public void Dispose() _disposed = true; - StopAsync().ConfigureAwait(false).GetAwaiter().GetResult(); +#pragma warning disable VSTHRD002 // Avoid problematic synchronous waits + StopAsync().GetAwaiter().GetResult(); +#pragma warning restore VSTHRD002 _host.Dispose(); } }