Skip to content

Ngen confused app #423

Answered by mkaring
alex6dj asked this question in Q&A
Oct 14, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

So first thing is that your assembly requires a strong name. So you absolutely need to sign your assembly and you need to allow ConfuserEx to use the key in order to resign the assembly.

The other thing that jumps straight to mind, is the anti tamper. This one is very likely breaking ngen, because ngen needs to be able, to read the method body. anti tamper prevents this. Also everything that uses x86 predicates is likely incompatible, because ngen is only working for fully managed assenblies. Using the x86 encodings and predicates, will turn the assembly to a mixed assembly.

I'm not sure about invalid metadata. It shouldn't affect ngen, but I can't say for sure.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alex6dj
Comment options

Answer selected by alex6dj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants