Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IronPython for .NET core

I'm developing a windows 10 universal app in VS15 using the new .NETCore reference assemblies and want to reference the IronPython library. Unfortunately, IronPython targets .NETFramework and not .NETCore. Does anybody know of an alternative library for running python scripts within .NET using C#, a way to make IronPython portable, or a way to work around the project targeting .NETCore? Other possible solutions welcomed. Also does anybody know whether IronPython will become .NETCore compatible/if that's possible? Thank you. PS I am trying to execute very simple python scripts and display the interpreter's output.

like image 517
Alfred Young Avatar asked Jul 31 '15 19:07

Alfred Young


People also ask

Does IronPython support .NET core?

net core is still in progress. Update: with IronPython 2.7. 10, the IronPython-Team added support for . NET Core 3.1.

Is IronPython still active?

Microsoft abandoned IronPython (and its sister project IronRuby) in late 2010, after which Hugunin left to work at Google. The project is currently maintained by a group of volunteers at GitHub.

What is IronPython used for?

IronPython works as an extension to the . NET Framework, but it can also be used by . NET projects to take advantage of Python's scripting power. Other than that, since IronPython is a real implementation of Python itself, there's no need to learn a new language or extra features if you already know Python.

Is IronPython the same as Python?

Python is Python, the only difference is that IronPython was designed to run on the CLR (. NET Framework), and as such, can inter-operate and consume . NET assemblies written in other .


1 Answers

The IronPython-Team just released the beta of IronPython 2.7.8 supporting mono and .net core:

more infos here: https://github.com/IronLanguages/ironpython2/releases

There is also a nuget package IronPython. You probably need to switch from Stable only to Include Prerelease

IronPython 3 with support for mono and .net core is still in progress.

Update: with IronPython 2.7.10, the IronPython-Team added support for .NET Core 3.1.

like image 181
Matthias Burger Avatar answered Sep 20 '22 00:09

Matthias Burger