Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do something about SecurityRulesAttribute #124

Open
gluck opened this issue Aug 18, 2015 · 0 comments
Open

Do something about SecurityRulesAttribute #124

gluck opened this issue Aug 18, 2015 · 0 comments
Labels

Comments

@gluck
Copy link
Owner

gluck commented Aug 18, 2015

After hours of debugging, found out the reason ILRepack roundtrip of NHibernate fails (or rather causes PEVerify errors) is caused by SecurityRules attribute being removed.

NHibernate specifies SecurityRules(Set.Level1) (aka "I'm a legacy assembly, don't verify me IL"), because it merges a .Net2 assembly and has to.

ILRepack should do something about that, ideally migrate the code to L2 SecurityRules but that's probably too complex.

References:
https://groups.google.com/forum/#!topic/nhibernate-development/qH-IWEByM3c
https://msdn.microsoft.com/en-us/library/bb397858(v=vs.110).aspx

@gluck gluck added the bug label Aug 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant