Help - Running IPY with .NET 3.5

View: New views
5 Messages — Rating Filter:   Alert me  

Help - Running IPY with .NET 3.5

by Brian Ushman (TT) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hello to All,

 

I am new to Python in general, but I have downloaded the latest release of IronPython.  I am using Windows XP SP3 x64.  Everytime I start IPY is says that it is using .NET 2.0, however I would like it to load with .NET 3.5.  From what I have read on the latest release of IPY, this should be possible but I have been unsuccessful.  Is there a way to force IPY to load with .NET 3.5?

 

Thank you!


_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: Help - Running IPY with .NET 3.5

by Michael Foord-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Brian Ushman (TT) wrote:

>
> Hello to All,
>
>  
>
> I am new to Python in general, but I have downloaded the latest
> release of IronPython.  I am using Windows XP SP3 x64.  Everytime I
> start IPY is says that it is using .NET 2.0, however I would like it
> to load with .NET 3.5.  From what I have read on the latest release of
> IPY, this should be possible but I have been unsuccessful.  Is there a
> way to force IPY to load with .NET 3.5?
>
>  
>
.NET 3.5 is really just a set of new libraries on top of .NET 2, there
is no new CLR as part of .NET 3.5. If you have .NET 3.5 then when you
run IronPython you are using .NET 3.5...

All the best,

Michael Foord


> Thank you!
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users@...
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>  


--
http://www.ironpythoninaction.com/

_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: Help - Running IPY with .NET 3.5

by Brian Ushman (TT) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for your reply Michael.

That makes sense that the clr has not changed.  However, how would I
have it load the newer .NET libraries instead of the 2.0 version.

In my specific case I am trying to call the function "SequenceEqual"
from the System.Array class.  But is says that this method does not
exist.  I looked in the documentation and this function only exists 3.5
and later.  That is what led me to believe that it is loading an older
version of .NET that does not have this method available.

Any ideas?

-----Original Message-----
From: users-bounces@...
[mailto:users-bounces@...] On Behalf Of Michael Foord
Sent: Wednesday, November 11, 2009 10:07 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Help - Running IPY with .NET 3.5

Brian Ushman (TT) wrote:
>
> Hello to All,
>
>  
>
> I am new to Python in general, but I have downloaded the latest
> release of IronPython.  I am using Windows XP SP3 x64.  Everytime I
> start IPY is says that it is using .NET 2.0, however I would like it
> to load with .NET 3.5.  From what I have read on the latest release of

> IPY, this should be possible but I have been unsuccessful.  Is there a

> way to force IPY to load with .NET 3.5?
>
>  
>
.NET 3.5 is really just a set of new libraries on top of .NET 2, there
is no new CLR as part of .NET 3.5. If you have .NET 3.5 then when you
run IronPython you are using .NET 3.5...

All the best,

Michael Foord


> Thank you!
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users@...
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>  


--
http://www.ironpythoninaction.com/

_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: Help - Running IPY with .NET 3.5

by Michael Foord-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Brian Ushman (TT) wrote:

> Thanks for your reply Michael.
>
> That makes sense that the clr has not changed.  However, how would I
> have it load the newer .NET libraries instead of the 2.0 version.
>
> In my specific case I am trying to call the function "SequenceEqual"
> from the System.Array class.  But is says that this method does not
> exist.  I looked in the documentation and this function only exists 3.5
> and later.  That is what led me to believe that it is loading an older
> version of .NET that does not have this method available.
>
> Any ideas?
>  
You will get .NET 3.5 by default - however to import some of the .NET
3.5 classes you will need to add references to the correct assemblies.

Is that method an extension method? They are not usually available
directly in IronPython. There have been a few emails / blog entries on
the topic if you google for them.

All the best,

Michael

> -----Original Message-----
> From: users-bounces@...
> [mailto:users-bounces@...] On Behalf Of Michael Foord
> Sent: Wednesday, November 11, 2009 10:07 AM
> To: Discussion of IronPython
> Subject: Re: [IronPython] Help - Running IPY with .NET 3.5
>
> Brian Ushman (TT) wrote:
>  
>> Hello to All,
>>
>>  
>>
>> I am new to Python in general, but I have downloaded the latest
>> release of IronPython.  I am using Windows XP SP3 x64.  Everytime I
>> start IPY is says that it is using .NET 2.0, however I would like it
>> to load with .NET 3.5.  From what I have read on the latest release of
>>    
>
>  
>> IPY, this should be possible but I have been unsuccessful.  Is there a
>>    
>
>  
>> way to force IPY to load with .NET 3.5?
>>
>>  
>>
>>    
> .NET 3.5 is really just a set of new libraries on top of .NET 2, there
> is no new CLR as part of .NET 3.5. If you have .NET 3.5 then when you
> run IronPython you are using .NET 3.5...
>
> All the best,
>
> Michael Foord
>
>
>  
>> Thank you!
>>
>>
>>    
> ------------------------------------------------------------------------
>  
>> _______________________________________________
>> Users mailing list
>> Users@...
>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>  
>>    
>
>
>  


--
http://www.ironpythoninaction.com/

_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: Help - Running IPY with .NET 3.5

by Dave Fugate :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Creating a file named ipy.exe.config alongside ipy.exe that looks similar to:

<?xml version="1.0" encoding="utf-8"?>

<configuration>

  <startup>

    <requiredRuntime version="v2.0.50727" safemode="true" />

  </startup>

</configuration>

 

will force IronPython to run against the given CLR runtime.

 

Dave

 

From: users-bounces@... [mailto:users-bounces@...] On Behalf Of Brian Ushman (TT)
Sent: Wednesday, November 11, 2009 7:59 AM
To: users@...
Subject: [IronPython] Help - Running IPY with .NET 3.5

 

Hello to All,

 

I am new to Python in general, but I have downloaded the latest release of IronPython.  I am using Windows XP SP3 x64.  Everytime I start IPY is says that it is using .NET 2.0, however I would like it to load with .NET 3.5.  From what I have read on the latest release of IPY, this should be possible but I have been unsuccessful.  Is there a way to force IPY to load with .NET 3.5?

 

Thank you!


_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com