File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed
PuppeteerSharp.Tests/Browsers/Chromium Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . IO ;
3
+ using System . Threading . Tasks ;
3
4
using NUnit . Framework ;
4
5
using PuppeteerSharp . Nunit ;
5
6
@@ -62,5 +63,9 @@ public void ShouldResolveExecutablePath()
62
63
BrowserData . Chromium . RelativeExecutablePath ( Platform . Win64 , "12372323" ) ,
63
64
Path . Combine ( "chrome-win" , "chrome.exe" ) ) ;
64
65
}
66
+
67
+ [ Test ]
68
+ public async Task ShouldResolveBuildIdFromPlatform ( )
69
+ => Assert . True ( int . TryParse ( await BrowserData . Chromium . ResolveBuildIdAsync ( Platform . MacOSArm64 ) , out var _ ) ) ;
65
70
}
66
71
}
Original file line number Diff line number Diff line change 1
- using System ;
1
+ using System ;
2
2
using System . Net . Http ;
3
3
using System . Threading . Tasks ;
4
4
using Newtonsoft . Json ;
@@ -14,10 +14,10 @@ public static async Task<T> GetAsync<T>(string url)
14
14
return JsonConvert . DeserializeObject < T > ( response ) ;
15
15
}
16
16
17
- internal static Task < string > GetTextAsync ( string url )
17
+ internal static async Task < string > GetTextAsync ( string url )
18
18
{
19
19
using var client = new HttpClient ( ) ;
20
- return client . GetStringAsync ( url ) ;
20
+ return await client . GetStringAsync ( url ) . ConfigureAwait ( false ) ;
21
21
}
22
22
}
23
23
}
Original file line number Diff line number Diff line change 12
12
<Description >Headless Browser .NET API</Description >
13
13
<PackageId >PuppeteerSharp</PackageId >
14
14
<PackageReleaseNotes ></PackageReleaseNotes >
15
- <PackageVersion >11.0.4 </PackageVersion >
16
- <ReleaseVersion >11.0.4 </ReleaseVersion >
17
- <AssemblyVersion >11.0.4 </AssemblyVersion >
18
- <FileVersion >11.0.4 </FileVersion >
15
+ <PackageVersion >11.0.5 </PackageVersion >
16
+ <ReleaseVersion >11.0.5 </ReleaseVersion >
17
+ <AssemblyVersion >11.0.5 </AssemblyVersion >
18
+ <FileVersion >11.0.5 </FileVersion >
19
19
<SynchReleaseVersion >false</SynchReleaseVersion >
20
20
<StyleCopTreatErrorsAsWarnings >false</StyleCopTreatErrorsAsWarnings >
21
21
<DebugType >embedded</DebugType >
You can’t perform that action at this time.
0 commit comments