You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jjonescz
changed the title
Top-level statements fail PEVerify in metadata-only mode
PEVerify fails compiling entrypoint in metadata-only mode
Jan 10, 2025
Working on a fix by emitting entrypoint in metadata-only EXE compilation. But it's a breaking change - previously a metadata-only EXE compilation wouldn't fail if the entrypoint was missing, now it does. Alternatively, I could make it so that it doesn't fail when the entrypoint is missing and continue with the previous behavior (emitting an invalid, PEVerify-failing assembly) in that case.
Version Used: 9881daa
Steps to Reproduce:
Expected Behavior: Succeeds.
Actual Behavior: PEVerify fails with "Bad token as entry point in CLR header."
Note that using Main and TestOptions.ReleaseExe fails in the same way.
Perhaps it's expected that ref assemblies are only supported by PEVerify for class libraries, not console apps.
The text was updated successfully, but these errors were encountered: