diff --git a/test/Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest/Helpers.cs b/test/Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest/Helpers.cs index 2a7d1047e6..976d9b11e0 100644 --- a/test/Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest/Helpers.cs +++ b/test/Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest/Helpers.cs @@ -1,9 +1,8 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.IO; -using Microsoft.Extensions.PlatformAbstractions; namespace Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest { @@ -11,7 +10,7 @@ namespace Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest { public static string GetApplicationPath(string projectName) { - var applicationBasePath = PlatformServices.Default.Application.ApplicationBasePath; + var applicationBasePath = AppContext.BaseDirectory; var directoryInfo = new DirectoryInfo(applicationBasePath); do