Open martinmueller4voice opened 7 months ago
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: https://github.com/martinmueller4voice/IronPythonTest Please let me know if you need anything else.
Thanks for the sample. It looks like Visual Studio is trying to be smart and isn't copying IronPython.Modules.dll
to the IronPythonTest/bin/Debug
folder which is what's causing the NullReferenceException
.
Ah, of course! The NullRefException disappears if I manually copy over all the missing assemblies (IronPython.Modules.dll, IdonPython.SQLite.dll and IronPython.Wpf.dll) to my output folder manually.
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