fix build

This commit is contained in:
Andrew Stanton-Nurse 2017-04-20 16:06:15 -07:00
parent 64e9cba14d
commit fc54ffc96e
1 changed files with 2 additions and 3 deletions

View File

@ -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. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
using System.IO; using System.IO;
using Microsoft.Extensions.PlatformAbstractions;
namespace Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest namespace Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest
{ {
@ -11,7 +10,7 @@ namespace Microsoft.AspNetCore.WebSockets.Internal.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