We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ModuleWriter
Cor20HeaderOptions.EntryPoint
1 parent 1e0ec26 commit 4f47c5eCopy full SHA for 4f47c5e
src/DotNet/Writer/ModuleWriter.cs
@@ -301,6 +301,10 @@ void InitializeChunkProperties() {
301
}
302
303
uint GetEntryPoint() {
304
+ var ep = Options.Cor20HeaderOptions.EntryPoint;
305
+ if (ep is not null)
306
+ return ep.Value;
307
+
308
if (module.ManagedEntryPoint is MethodDef methodEntryPoint)
309
return new MDToken(Table.Method, metadata.GetRid(methodEntryPoint)).Raw;
310
0 commit comments