react to removal of PlatformAbstractions (#168)
This commit is contained in:
parent
d8b1724454
commit
14b99f74fa
|
|
@ -8,7 +8,6 @@ using Microsoft.AspNetCore.Server.IntegrationTesting;
|
||||||
using Microsoft.AspNetCore.Server.IntegrationTesting.xunit;
|
using Microsoft.AspNetCore.Server.IntegrationTesting.xunit;
|
||||||
using Microsoft.AspNetCore.Testing.xunit;
|
using Microsoft.AspNetCore.Testing.xunit;
|
||||||
using Microsoft.AspNetCore.WebSockets.ConformanceTest.Autobahn;
|
using Microsoft.AspNetCore.WebSockets.ConformanceTest.Autobahn;
|
||||||
using Microsoft.Extensions.PlatformAbstractions;
|
|
||||||
using Xunit.Abstractions;
|
using Xunit.Abstractions;
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.WebSockets.ConformanceTest
|
namespace Microsoft.AspNetCore.WebSockets.ConformanceTest
|
||||||
|
|
@ -30,7 +29,7 @@ namespace Microsoft.AspNetCore.WebSockets.ConformanceTest
|
||||||
var reportDir = Environment.GetEnvironmentVariable("AUTOBAHN_SUITES_REPORT_DIR");
|
var reportDir = Environment.GetEnvironmentVariable("AUTOBAHN_SUITES_REPORT_DIR");
|
||||||
var outDir = !string.IsNullOrEmpty(reportDir) ?
|
var outDir = !string.IsNullOrEmpty(reportDir) ?
|
||||||
reportDir :
|
reportDir :
|
||||||
Path.Combine(PlatformServices.Default.Application.ApplicationBasePath, "autobahnreports");
|
Path.Combine(AppContext.BaseDirectory, "autobahnreports");
|
||||||
|
|
||||||
if (Directory.Exists(outDir))
|
if (Directory.Exists(outDir))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using Microsoft.Extensions.PlatformAbstractions;
|
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.WebSockets.ConformanceTest
|
namespace Microsoft.AspNetCore.WebSockets.ConformanceTest
|
||||||
{
|
{
|
||||||
|
|
@ -8,7 +7,7 @@ namespace Microsoft.AspNetCore.WebSockets.ConformanceTest
|
||||||
{
|
{
|
||||||
public static string GetApplicationPath(string projectName)
|
public static string GetApplicationPath(string projectName)
|
||||||
{
|
{
|
||||||
var applicationBasePath = PlatformServices.Default.Application.ApplicationBasePath;
|
var applicationBasePath = AppContext.BaseDirectory;
|
||||||
|
|
||||||
var directoryInfo = new DirectoryInfo(applicationBasePath);
|
var directoryInfo = new DirectoryInfo(applicationBasePath);
|
||||||
do
|
do
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Testing" Version="$(AspNetCoreVersion)" />
|
<PackageReference Include="Microsoft.AspNetCore.Testing" Version="$(AspNetCoreVersion)" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="$(AspNetCoreVersion)" />
|
<PackageReference Include="Microsoft.Extensions.Logging" Version="$(AspNetCoreVersion)" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Logging.Console" 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="Microsoft.NET.Test.Sdk" Version="$(TestSdkVersion)" />
|
||||||
<PackageReference Include="System.Diagnostics.FileVersionInfo" Version="$(CoreFxVersion)" />
|
<PackageReference Include="System.Diagnostics.FileVersionInfo" Version="$(CoreFxVersion)" />
|
||||||
<PackageReference Include="xunit.runner.visualstudio" Version="$(XunitVersion)" />
|
<PackageReference Include="xunit.runner.visualstudio" Version="$(XunitVersion)" />
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue