From 6c8359ca9c6ffd05f0d070a2079b0c68b5967aa9 Mon Sep 17 00:00:00 2001 From: Andrew Stanton-Nurse Date: Thu, 20 Apr 2017 11:08:29 -0700 Subject: [PATCH] react to removal of PlatformAbstractions (#116) --- .../Infrastructure/ApplicationPaths.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.FunctionalTests/Infrastructure/ApplicationPaths.cs b/test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.FunctionalTests/Infrastructure/ApplicationPaths.cs index 2534e3264a..b8d820fb9c 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.FunctionalTests/Infrastructure/ApplicationPaths.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.FunctionalTests/Infrastructure/ApplicationPaths.cs @@ -3,7 +3,6 @@ using System; using System.IO; -using Microsoft.Extensions.PlatformAbstractions; namespace Microsoft.AspNetCore.Mvc.Razor.ViewCompilation { @@ -20,7 +19,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.ViewCompilation private static string GetSolutionDirectory() { - var applicationBasePath = PlatformServices.Default.Application.ApplicationBasePath; + var applicationBasePath = AppContext.BaseDirectory; var directoryInfo = new DirectoryInfo(applicationBasePath); do