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

TypeReference.Resolve returns null on NetCore #433

Closed
reflection-emit opened this issue Jul 21, 2017 · 4 comments
Closed

TypeReference.Resolve returns null on NetCore #433

reflection-emit opened this issue Jul 21, 2017 · 4 comments

Comments

@reflection-emit
Copy link

I encountered this with the following code:
this.moduleDefinition.ImportReference(typeof(NotImplementedException)).Resolve()

This code works fine for UWP and .NET 4.5.2 and higher, but not for NetCore.

Honestly I am not sure if this is a bug in Cecil or I am just missing something in NetCore.

@jbevain
Copy link
Owner

jbevain commented Aug 11, 2017

Could very well be related to #306.

@reflection-emit
Copy link
Author

I tried that solution, but DependencyContext.Default also returns null... So the whole resolver does not work.

@jbevain
Copy link
Owner

jbevain commented Oct 25, 2017

Fixed in #444.

@jbevain jbevain closed this as completed Oct 25, 2017
@reflection-emit
Copy link
Author

Yap I can confirm... It works now.

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

2 participants