From 4f47c5ef31500edb0cf2bc19d2ad3a12c4700275 Mon Sep 17 00:00:00 2001 From: ElektroKill Date: Sat, 30 Nov 2024 13:47:16 +0100 Subject: [PATCH 1/2] `ModuleWriter` no longer ignores `Cor20HeaderOptions.EntryPoint` value --- src/DotNet/Writer/ModuleWriter.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/DotNet/Writer/ModuleWriter.cs b/src/DotNet/Writer/ModuleWriter.cs index d4ade9ae9..e73005362 100644 --- a/src/DotNet/Writer/ModuleWriter.cs +++ b/src/DotNet/Writer/ModuleWriter.cs @@ -301,6 +301,10 @@ void InitializeChunkProperties() { } uint GetEntryPoint() { + var ep = Options.Cor20HeaderOptions.EntryPoint; + if (ep is not null) + return ep.Value; + if (module.ManagedEntryPoint is MethodDef methodEntryPoint) return new MDToken(Table.Method, metadata.GetRid(methodEntryPoint)).Raw; From 1229681cac55d11d3192fc8a91826791b3bb6bf5 Mon Sep 17 00:00:00 2001 From: ElektroKill Date: Sat, 30 Nov 2024 13:53:30 +0100 Subject: [PATCH 2/2] Fix CI --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 55fc93c54..1071e16bc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,7 +47,7 @@ jobs: New-Item -ItemType Directory nuget_files > $null Copy-Item src\bin\Release\*.*nupkg nuget_files - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') with: name: nupkg