react to removal of PlatformAbstractions (#116)
This commit is contained in:
parent
d938fef626
commit
6c8359ca9c
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using Microsoft.Extensions.PlatformAbstractions;
|
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.Mvc.Razor.ViewCompilation
|
namespace Microsoft.AspNetCore.Mvc.Razor.ViewCompilation
|
||||||
{
|
{
|
||||||
|
|
@ -20,7 +19,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.ViewCompilation
|
||||||
|
|
||||||
private static string GetSolutionDirectory()
|
private static string GetSolutionDirectory()
|
||||||
{
|
{
|
||||||
var applicationBasePath = PlatformServices.Default.Application.ApplicationBasePath;
|
var applicationBasePath = AppContext.BaseDirectory;
|
||||||
|
|
||||||
var directoryInfo = new DirectoryInfo(applicationBasePath);
|
var directoryInfo = new DirectoryInfo(applicationBasePath);
|
||||||
do
|
do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue