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

When importing types with scope assembly that has public key, the attribute is incorrect #41

Closed
yck1509 opened this issue Jul 6, 2015 · 1 comment

Comments

@yck1509
Copy link
Contributor

yck1509 commented Jul 6, 2015

In Importer.CreateScopeReference, it changes public key to tokens via ToPublicKeyToken. However, the attribute that has AssemblyAttributes.PublicKey remains unchanged. Changing the attribute copying to Attributes = defAsm.Attributes & ~AssemblyAttributes.PublicKey fix it for me.

@0xd4d 0xd4d closed this as completed in 86b107f Jul 6, 2015
@0xd4d
Copy link
Collaborator

0xd4d commented Jul 6, 2015

Good catch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant