{"action":"closed","issue":{"url":"https://api.github.com/repos/0xd4d/dnlib/issues/41","labels_url":"https://api.github.com/repos/0xd4d/dnlib/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/0xd4d/dnlib/issues/41/comments","events_url":"https://api.github.com/repos/0xd4d/dnlib/issues/41/events","html_url":"https://github.com/0xd4d/dnlib/issues/41","id":93230470,"number":41,"title":"When importing types with scope assembly that has public key, the attribute is incorrect","user":{"login":"yck1509","id":846268,"avatar_url":"https://avatars.githubusercontent.com/u/846268?v=3","gravatar_id":"","url":"https://api.github.com/users/yck1509","html_url":"https://github.com/yck1509","followers_url":"https://api.github.com/users/yck1509/followers","following_url":"https://api.github.com/users/yck1509/following{/other_user}","gists_url":"https://api.github.com/users/yck1509/gists{/gist_id}","starred_url":"https://api.github.com/users/yck1509/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yck1509/subscriptions","organizations_url":"https://api.github.com/users/yck1509/orgs","repos_url":"https://api.github.com/users/yck1509/repos","events_url":"https://api.github.com/users/yck1509/events{/privacy}","received_events_url":"https://api.github.com/users/yck1509/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-06T09:19:18Z","updated_at":"2015-07-06T15:44:30Z","closed_at":"2015-07-06T15:44:30Z","body":"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."}}