-
Notifications
You must be signed in to change notification settings - Fork 285
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
NullReferenceException while creating IronPython engine in referenced project #1778
Comments
I haven't been able to reproduce the issue. Could you perhaps provide a working example that demonstrates the issue? |
I've uploaded a test project to GitHub: |
Thanks for the sample. It looks like Visual Studio is trying to be smart and isn't copying |
Ah, of course! Could it be that the nuspec file is missing those references? |
Description
When calling
from inside a referenced project, a
will get thrown.
Continue during debugging in VS does work, though, and will create a usable engine nevertheless.
Steps to Reproduce
Create a Windows Forms Application and a library project.
Install the IronPython NuGet package in the library project and use the code above to create an engine from within the referenced assembly.
Running the code from within the library throws the
NullReferenceException
inImporter.ImportReflected()
.Trying the exact same steps directly in the main application works without problems.
Version Information
The text was updated successfully, but these errors were encountered: