Monday, July 26, 2010

ASP.NET dynamic language support is open source

I'm happy to finally announce that the ASP.NET dynamic language support is now open source:

Download IronPython and ASP.NET integration

For a full IronPython release with the Python standard library, download IronPython 2.7 Alpha 1.

This release contains the source code to Microsoft.Scripting.AspNet.dll, located in the src directory, licensed under the Apache License (Version 2). It will be available in the source repository for IronPython in the very near future, but don't hesitate to start sending in patches. This release is compatible with IronPython 2.7 Alpha 1.

Background

This download enables IronPython as an ASP.NET programming language. To create a new IronPython ASP.NET WebForms project, simply copy examples\web.config and examples\bin, and use examples\hello-webforms.aspx as a reference. A redistributed copy of the IronPython 2.7 Alpha 1 binaries can be found in the examples\bin directory; all files except Microsoft.Scripting.AspNet.dll, the IronPython ASP.NET integration, are from the IronPython 2.7 Alpha 1 release.

For more detail on getting started, here’s a simple walk-through of making the “hello-webforms” app.

Package

Here's what's in the zip file:

  • /License.html - The Apache License, Version 2.
  • /dlr-aspnet.sln - VS2010 solution for examples
  • /examples - Examples of using IronPython in ASP.NET.
  • /examples/Web*.config - configures ASP.NET to use IronPython
  • /examples/bin - Microsoft.Scripting.AspNet.dll, the ASP.NET integration, and a redistribution of IronPython 2.7A1.
  • /src - C# source code that builds Microsoft.Scripting.AspNet.dll

Upgrading

This release renames the main DLL from Microsoft.Web.Scripting.dll to Microsoft.Scripting.AspNet.dll. If upgrading, you'll have to replace all occurrences of Microsoft.Web.Scripting with Microsoft.Scripting.AspNet. This will primarily be at the top of all aspx pages, as well as in your application's web.config. Also note the version number is now 1.1.0.1, which matches all the other Microsoft.Scripting assemblies.

Feedback

As always, please report issues on the IronPython issue tracker. You can also try to fix any issues yourself and submit a patch. Lastly, you can actually talk to humans on the IronPython mailing list.

Enjoy!

5 comments:

Pete Austin said...

Please could you confirm what this applies to. I assume only the programming languages and nothing else?

For example from http://www.codeplex.com/Legal/Terms.aspx

"Permission to use Documents (such as white papers, press releases, datasheets and FAQs) from the Services is granted, provided that: (1) the below copyright notice appears in all copies and that both the copyright notice and this permission notice appear, (2) use of such Documents from the Services is for informational and non-commercial or personal use only"

This seems incompatible with an Open Source license, so what is the legal position of Open Source programmers who read Microsoft Documentation? - Pete Austin

Pete Austin said...

A specific case is your IronPython example program at the following URL. Can Open Source programmers, seeking to learn about IronPython for commercial reasons, download and use this?

http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=17613

Jimmy Schementi said...

@pete I agree with your concern about that verbage on CodePlex.com. However, all source-code on IronPython.net or IronPython.CodePlex.com is licensed under the Apache license (version 2). If you are uncomfortable with the CodePlex terms, you should download the ASP.NET integration directly from the IronPython website, as my blog post links to: http://ironpython.net/download/aspnet-20100716. The downloads on aspnet.codeplex.com are older, but I'm trying to get the ASP.NET team to update them.

shaikh zafar said...

Really Great post. It is impressive and informative post.
Thanks for share...

Magento Development India

printers ink said...

Its a great post because most of people dont know about this.Keep it up