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

Fixes regarding external assembly references which cannot be resolved #177

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mjgertsen
Copy link

When saving an assemblybuilder to file I had two issues.
First one was a reference which could not be found when a type of a references assembly was passed as a parameter of an customattribute.
Second one that I had was that the IsReferencedType method was always returning false.
Therefore I got an exception that the referenced assembly (the one that was being saved) could not be found.

…part of the assembly itself were not working.

The GetCustomAttribute would fail because it is unable to resolve the reference for the provided type.
Using the AssemblyQualifiedname will make sure the reference can be resolved.

Example:

[AnAttribute(typeof(TypeFromOtherAssembly))]
public class test {

}

Trying to get the custom attribute will result in an unable to resolve "TypeFromOtherAssembly" exception
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

Successfully merging this pull request may close these issues.

1 participant