11using System ;
22using System . Collections . Generic ;
3- using System . Drawing ;
4- using System . Drawing . Imaging ;
53using System . Globalization ;
64using System . IO ;
75using System . Linq ;
@@ -367,7 +365,7 @@ await File.ReadAllBytesAsync("Assets/Framebuffer.bin")
367365 Assert . Equal ( 1u , header . Version ) ;
368366 Assert . Equal ( 0u , header . ColorSpace ) ;
369367
370- #if WINDOWS
368+ #if HAS_IMAGING
371369 if ( ! OperatingSystem . IsWindows ( ) ) { return ; }
372370
373371 using Bitmap image = framebuffer . ToImage ( ) ;
@@ -937,7 +935,7 @@ await RunTestAsync(
937935 ( ) => TestClient . InstallCommitAsync ( Device , "936013062" ) ) ;
938936 }
939937
940- #if WINDOWS10_0_17763_0_OR_GREATER
938+ #if WINDOWS10_0_18362_0_OR_GREATER
941939 /// <summary>
942940 /// Tests the <see cref="AdbClient.InstallAsync(DeviceData, IRandomAccessStream, Action{InstallProgressEventArgs}?, CancellationToken, string[])"/> method.
943941 /// </summary>
@@ -963,7 +961,7 @@ public async Task InstallWinRTAsyncTest()
963961
964962 byte [ ] response = "Success\n "u8 . ToArray ( ) ;
965963
966- StorageFile storageFile = await StorageFile . GetFileFromPathAsync ( Path . Combine ( AppDomain . CurrentDomain . BaseDirectory , @ "Assets\ TestApp\ base.apk") ) ;
964+ StorageFile storageFile = await StorageFile . GetFileFromPathAsync ( Path . GetFullPath ( "Assets/ TestApp/ base.apk" ) ) ;
967965 using ( IRandomAccessStreamWithContentType stream = await storageFile . OpenReadAsync ( ) )
968966 {
969967 string [ ] requests =
@@ -1012,7 +1010,7 @@ public async Task InstallMultipleWinRTAsyncTest()
10121010 }
10131011 }
10141012
1015- StorageFile storageFile = await StorageFile . GetFileFromPathAsync ( Path . Combine ( AppDomain . CurrentDomain . BaseDirectory , @ "Assets\ TestApp\ split_config.arm64_v8a.apk") ) ;
1013+ StorageFile storageFile = await StorageFile . GetFileFromPathAsync ( Path . GetFullPath ( "Assets/ TestApp/ split_config.arm64_v8a.apk" ) ) ;
10161014 using IRandomAccessStreamWithContentType abiStream = await storageFile . OpenReadAsync ( ) ;
10171015
10181016 string [ ] requests =
@@ -1086,9 +1084,9 @@ public async Task InstallMultipleWinRTWithBaseAsyncTest()
10861084 }
10871085 }
10881086
1089- StorageFile storageFile = await StorageFile . GetFileFromPathAsync ( Path . Combine ( AppDomain . CurrentDomain . BaseDirectory , @ "Assets\ TestApp\ base.apk") ) ;
1087+ StorageFile storageFile = await StorageFile . GetFileFromPathAsync ( Path . GetFullPath ( "Assets/ TestApp/ base.apk" ) ) ;
10901088 using IRandomAccessStreamWithContentType baseStream = await storageFile . OpenReadAsync ( ) ;
1091- storageFile = await StorageFile . GetFileFromPathAsync ( Path . Combine ( AppDomain . CurrentDomain . BaseDirectory , @ "Assets\ TestApp\ split_config.arm64_v8a.apk") ) ;
1089+ storageFile = await StorageFile . GetFileFromPathAsync ( Path . GetFullPath ( "Assets/ TestApp/ split_config.arm64_v8a.apk" ) ) ;
10921090 using IRandomAccessStreamWithContentType abiStream = await storageFile . OpenReadAsync ( ) ;
10931091
10941092 string [ ] requests =
@@ -1153,7 +1151,7 @@ public async Task InstallWriteWinRTAsyncTest()
11531151 }
11541152 }
11551153
1156- StorageFile storageFile = await StorageFile . GetFileFromPathAsync ( Path . Combine ( AppDomain . CurrentDomain . BaseDirectory , @ "Assets\ TestApp\ base.apk") ) ;
1154+ StorageFile storageFile = await StorageFile . GetFileFromPathAsync ( Path . GetFullPath ( "Assets/ TestApp/ base.apk" ) ) ;
11571155 using ( IRandomAccessStreamWithContentType stream = await storageFile . OpenReadAsync ( ) )
11581156 {
11591157 string [ ] requests =
0 commit comments