react to removal of PlatformAbstractions (#168)

This commit is contained in:
Andrew Stanton-Nurse 2017-04-20 09:31:10 -07:00 committed by GitHub
parent d8b1724454
commit 14b99f74fa
3 changed files with 2 additions and 5 deletions

View File

@ -8,7 +8,6 @@ using Microsoft.AspNetCore.Server.IntegrationTesting;
using Microsoft.AspNetCore.Server.IntegrationTesting.xunit;
using Microsoft.AspNetCore.Testing.xunit;
using Microsoft.AspNetCore.WebSockets.ConformanceTest.Autobahn;
using Microsoft.Extensions.PlatformAbstractions;
using Xunit.Abstractions;
namespace Microsoft.AspNetCore.WebSockets.ConformanceTest
@ -30,7 +29,7 @@ namespace Microsoft.AspNetCore.WebSockets.ConformanceTest
var reportDir = Environment.GetEnvironmentVariable("AUTOBAHN_SUITES_REPORT_DIR");
var outDir = !string.IsNullOrEmpty(reportDir) ?
reportDir :
Path.Combine(PlatformServices.Default.Application.ApplicationBasePath, "autobahnreports");
Path.Combine(AppContext.BaseDirectory, "autobahnreports");
if (Directory.Exists(outDir))
{

View File

@ -1,6 +1,5 @@
using System;
using System.IO;
using Microsoft.Extensions.PlatformAbstractions;
namespace Microsoft.AspNetCore.WebSockets.ConformanceTest
{
@ -8,7 +7,7 @@ namespace Microsoft.AspNetCore.WebSockets.ConformanceTest
{
public static string GetApplicationPath(string projectName)
{
var applicationBasePath = PlatformServices.Default.Application.ApplicationBasePath;
var applicationBasePath = AppContext.BaseDirectory;
var directoryInfo = new DirectoryInfo(applicationBasePath);
do

View File

@ -11,7 +11,6 @@
<PackageReference Include="Microsoft.AspNetCore.Testing" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.Extensions.PlatformAbstractions" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(TestSdkVersion)" />
<PackageReference Include="System.Diagnostics.FileVersionInfo" Version="$(CoreFxVersion)" />
<PackageReference Include="xunit.runner.visualstudio" Version="$(XunitVersion)" />