Skip to content

Commit

Permalink
Move SetupDotNetHelper into OnInitializedAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
sungaila committed Nov 16, 2023
1 parent 3a242b4 commit 7efa572
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/PDFtoImage/PDFtoImage.CodeSigning.targets
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Code sign assemblies -->
<Target Name="CodeSignAssembliesBuild" AfterTargets="PostBuildEvent" Condition="'$(Configuration)'=='ReleaseSigned'">
<Exec Command="powershell &quot;cd $(OutDir); &amp;'$(SignToolPath)signtool.exe' sign /n '$(SignSubjectName)' /tr '$(SignTimestampServerUrl)' /fd certHash /td certHash /tdchw /v ((Get-ChildItem -Include ('*.dll', '*.exe') -Recurse . | select -ExpandProperty FullName | ForEach-Object {'\&quot;' + $_ + '\&quot;\&quot;'}) -join ' ')&quot;" />
<Exec Command="powershell &quot;cd $(OutDir); &amp;'$(SignToolPath)signtool.exe' sign /n '$(SignSubjectName)' /tr '$(SignTimestampServerUrl)' /fd certHash /td certHash /fdchw /tdchw /v ((Get-ChildItem -Include ('*.dll', '*.exe') -Recurse . | select -ExpandProperty FullName | ForEach-Object {'\&quot;' + $_ + '\&quot;\&quot;'}) -join ' ')&quot;" />
</Target>

<Target Name="CodeSignAssembliesPublish" AfterTargets="Publish" Condition="'$(Configuration)'=='ReleaseSigned'">
<Exec Command="powershell &quot;cd $(PublishDir); &amp;'$(SignToolPath)signtool.exe' sign /n '$(SignSubjectName)' /tr '$(SignTimestampServerUrl)' /fd certHash /td certHash /tdchw /v ((Get-ChildItem -Include ('*.dll', '*.exe') -Recurse . | select -ExpandProperty FullName | ForEach-Object {'\&quot;' + $_ + '\&quot;\&quot;'}) -join ' ')&quot;" />
<Exec Command="powershell &quot;cd $(PublishDir); &amp;'$(SignToolPath)signtool.exe' sign /n '$(SignSubjectName)' /tr '$(SignTimestampServerUrl)' /fd certHash /td certHash /fdchw /tdchw /v ((Get-ChildItem -Include ('*.dll', '*.exe') -Recurse . | select -ExpandProperty FullName | ForEach-Object {'\&quot;' + $_ + '\&quot;\&quot;'}) -join ' ')&quot;" />
</Target>
</Project>
6 changes: 1 addition & 5 deletions src/WebConverter/Pages/Index.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,10 @@ public partial class Index : IDisposable

public Exception? LastException { get; private set; }

protected override async Task OnAfterRenderAsync(bool firstRender)
protected override async Task OnInitializedAsync()

Check failure on line 27 in src/WebConverter/Pages/Index.razor.cs

View workflow job for this annotation

GitHub Actions / Build

'Index.OnInitializedAsync()': no suitable method found to override
{
await SetupDotNetHelper();
await base.OnAfterRenderAsync(firstRender);
}

protected override async Task OnInitializedAsync()
{
Program.FilesHandled -= OnFilesHandled;
Program.FilesHandled += OnFilesHandled;

Expand Down

0 comments on commit 7efa572

Please sign in to comment.