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(); } }