This repository was archived by the owner on Nov 22, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
test/Microsoft.AspNetCore.StaticFiles.Tests Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
using System ;
5
5
using System . Collections . Generic ;
6
+ using System . Runtime . InteropServices ;
6
7
using Microsoft . AspNetCore . Builder ;
7
8
using Microsoft . AspNetCore . Hosting ;
8
9
using Microsoft . AspNetCore . TestHost ;
9
10
using Microsoft . Extensions . Configuration ;
10
11
using Microsoft . Extensions . DependencyInjection ;
11
- using Microsoft . Extensions . PlatformAbstractions ;
12
12
13
13
namespace Microsoft . AspNetCore . StaticFiles
14
14
{
15
15
public static class StaticFilesTestServer
16
16
{
17
17
public static TestServer Create ( Action < IApplicationBuilder > configureApp , Action < IServiceCollection > configureServices = null )
18
18
{
19
- var contentRootNet451 = PlatformServices . Default . Runtime . OperatingSystemPlatform == Platform . Windows ?
19
+ var contentRootNet451 = RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) ?
20
20
"." : "../../../../test/Microsoft.AspNetCore.StaticFiles.Tests" ;
21
21
Action < IServiceCollection > defaultConfigureServices = services => { } ;
22
22
var configuration = new ConfigurationBuilder ( )
Original file line number Diff line number Diff line change 16
16
]
17
17
},
18
18
"dependencies" : {
19
+ "System.Runtime.InteropServices.RuntimeInformation" : " 4.0.0-*" ,
19
20
"dotnet-test-xunit" : " 1.0.0-*" ,
20
21
"Microsoft.NETCore.Platforms" : " 1.0.1-*" ,
21
22
"Microsoft.AspNetCore.StaticFiles" : " 1.0.0-*" ,
You can’t perform that action at this time.
0 commit comments