It would require some additional features be implemented in .NET core to
support it.
On Thu, Apr 5, 2018 at 9:23 AM Josiah Kiehl wrote:
> Got it. Thanks for the answers. I'll hang on to this work for future when
> compile module works in .net core. Is that an eventual plan?
>
> On Thu, Apr 5, 20
Got it. Thanks for the answers. I'll hang on to this work for future when
compile module works in .net core. Is that an eventual plan?
On Thu, Apr 5, 2018, 6:45 AM Stéphane Lozier
wrote:
> It sounds like you were already doing what I was suggesting trying. The
> "full framework" version is what
It sounds like you were already doing what I was suggesting trying. The
"full framework" version is what you get when you install using the MSI.
The zip file in releases link contains the .NET Core version of the
interpreter but like I said it doesn't support CompileModule.
I think you may be out
Oh! I understand now, thanks for clarifying. Yes, that's the problem. You
mentioned that there is a "full framework" version I could compile my dlls
with? I poked around the releases and I wasn't sure what you were
referencing, specifically.
I installed via the 2.7.8 msi from here:
https://github.
I assumed you were using .NET Core when you said you were using dotnet
2.0.3. So you are compiling using ipy.exe (which is a .NET 4.5 app) and
then using the assembly from a .NET Core 2.0 application? The .NET Core API
doesn't expose System.Runtime.CompilerServices.Closure so that might be the
reas
Sorry if I'm not understanding... when you say "full framework version", do
you mean the stand alone executable, ipy.exe?
I compiled the dll with ipy.exe running a simple script:
> ipy compile.py
# compile.py
import clr
clr.CompileModules("compiled.dll", "test.py")
This works just fine.
Then
The .NET Core version of IronPython does not support assembly generation. I
haven't tried it myself, but you could probably compile the assembly using
the full framework version and then run it with .NET Core 2.0 (assuming
you're not using unsupported APIs).
Stéphane
On Tue, Apr 3, 2018, 5:16 PM
Oh, I'm on dotnet 2.0.3, if that's relevant information.
On Tue, Apr 3, 2018 at 2:15 PM Josiah Kiehl wrote:
> I'm trying to execute this example code:
>
> https://stackoverflow.com/questions/32639893/call-dll-function-from-c-sharp-ironpython
>
> I realize the posted question is a few years old a
I'm trying to execute this example code:
https://stackoverflow.com/questions/32639893/call-dll-function-from-c-sharp-ironpython
I realize the posted question is a few years old at this point... has
something changed in how python, compiled to a DLL via clr.CompileModule,
is loaded?
I'm getting th