Skip to content

Commit 92b7c50

Browse files
committed
Production ready
1 parent 4e97272 commit 92b7c50

File tree

8 files changed

+11
-19
lines changed

8 files changed

+11
-19
lines changed

PuppeteerSharp.Renderer/PuppeteerSharp.Renderer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<ItemGroup>
3737
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="all" />
3838
<PackageReference Include="PuppeteerSharp" Version="2.0.4" />
39-
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.15.0.24505">
39+
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.18.0.27296">
4040
<PrivateAssets>all</PrivateAssets>
4141
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4242
</PackageReference>

PuppeteerSharp.Renderer/Renderer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ public async Task ConvertHtmlToPdf(string sourceHtmlFilePath, string destination
7272
/// Converts a HTML file to a PNG
7373
/// </summary>
7474
/// <param name="sourceHtmlFilePath"></param>
75-
/// <param name="destinationPdfFilePath"></param>
75+
/// <param name="destinationPngFilePath"></param>
7676
/// <returns></returns>
77-
public async Task ConvertHtmlToPng(string sourceHtmlFilePath, string destinationPdfFilePath)
77+
public async Task ConvertHtmlToPng(string sourceHtmlFilePath, string destinationPngFilePath)
7878
{
7979
if (!File.Exists(sourceHtmlFilePath))
8080
{
@@ -84,7 +84,7 @@ public async Task ConvertHtmlToPng(string sourceHtmlFilePath, string destination
8484
var absolutePath = Path.GetFullPath(sourceHtmlFilePath);
8585
var page = await Browser.NewPageAsync().ConfigureAwait(false);
8686
await page.GoToAsync($"file://{absolutePath}").ConfigureAwait(false);
87-
await page.ScreenshotAsync(destinationPdfFilePath, new ScreenshotOptions() { FullPage = true }).ConfigureAwait(false);
87+
await page.ScreenshotAsync(destinationPngFilePath, new ScreenshotOptions() { FullPage = true }).ConfigureAwait(false);
8888
}
8989

9090
private void DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)

PuppeteerSharp.RendererCliTests/PuppeteerSharp.RendererCliTests.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,12 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
10+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
1111
<PackageReference Include="xunit" Version="2.4.1" />
1212
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1414
<PrivateAssets>all</PrivateAssets>
1515
</PackageReference>
16-
<PackageReference Include="coverlet.collector" Version="1.3.0">
17-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
18-
<PrivateAssets>all</PrivateAssets>
19-
</PackageReference>
2016
</ItemGroup>
2117

2218
<ItemGroup>

PuppeteerSharp.RendererCliTests/UnitTest1.cs renamed to PuppeteerSharp.RendererCliTests/RendererCliTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace PuppeteerSharp.RendererCliTests
88
{
9-
public class UnitTest1
9+
public class RendererCliTests
1010
{
1111
[Fact]
1212
public void VersionShouldBeProcessed()
141 Bytes
Loading
-363 Bytes
Loading

PuppeteerSharp.RendererTests/PuppeteerSharp.RendererTests.csproj

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
</ItemGroup>
1717

1818
<ItemGroup>
19-
<PackageReference Include="ImageSharpCompare" Version="1.0.27" />
20-
<PackageReference Include="PdfjsSharp" Version="1.0.39" />
21-
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.15.0.24505">
19+
<PackageReference Include="ImageSharpCompare" Version="1.1.30" />
20+
<PackageReference Include="PdfjsSharp" Version="1.0.47" />
21+
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.18.0.27296">
2222
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2323
<PrivateAssets>all</PrivateAssets>
2424
</PackageReference>
@@ -28,10 +28,6 @@
2828
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2929
<PrivateAssets>all</PrivateAssets>
3030
</PackageReference>
31-
<PackageReference Include="coverlet.collector" Version="1.3.0">
32-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
33-
<PrivateAssets>all</PrivateAssets>
34-
</PackageReference>
3531
</ItemGroup>
3632

3733
<ItemGroup>

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dotnet_csproj:
3232
patch: true
3333
file: '**\*.csproj'
3434
version: "{version}"
35-
package_version: "{version}-prerelease"
35+
package_version: "{version}"
3636
assembly_version: "{version}"
3737
file_version: "{version}"
3838
informational_version: "{version}"
@@ -47,7 +47,7 @@ artifacts:
4747
deploy:
4848
- provider: NuGet
4949
api_key:
50-
secure: /G1AWAN6rAx8wnb36AM3XpYDyK9cVtfa3RdOsDYSw+Pxmy8AjztIGL7Zoo8nIikw
50+
secure: CTISdGCfnpyC7Rh5vs1pgbuISrkWF34sot0SyVgvu0HQxhNNd+V0Gc4MS+rtJttB
5151
skip_symbols: false
5252
on:
5353
branch: main

0 commit comments

Comments
 (0)