IronPython :- Visual Studio 2010 or SharpDevelop? - visual-studio-2010

I'm considering developing a medium-size project for a client in IronPython. It's a pretty straightforward replacement for an existing system I've been supporting for several years, so the specification is quite well defined and understood.
This is my first significant IronPython and .Net project so I'm expecting a bit of a learning curve. I was going to use SharpeDevelop, but I can purchase VisualStudion 2010 for a reasonable price and whilst I understood that IronPython Tools for Visual Studio 2008 were not so good, I haven't seen anything about the update for 2010 yet.
Has anyone used either or both of these in a reasonable-sized commercial environment and do you have any recommendations?
(and I'm aware of this question, but this is specifically about VS2010)

Here is a quick comparison of IronPython Tools for Visual Studio 2010 and SharpDevelop showing the features that one has which the other does not:
IronPython Tools for Visual Studio 2010 has:
Better intellisense.
WPF designer.
Can edit your code without a project.
Go to definition support.
Find all references support.
More comprehensive IronPython interactive window integration.
SharpDevelop has:
WinForms designer.
Code conversion support from C#, VB.NET to Python
Compiles your IronPython code to an executable or class library.
Both of them are free. You can use IronPython Tools with the Visual Studio 2010 Shell (Integrated) which is a free download.

Considering that the IronPython Tools for VS2010 are "only" at the CTP stage, they're very high quality (anyone else would call them a beta). I've been using them when I can for a while now and haven't had any major issues. If you do have any issues with the VS2010 tools, the IronPython team is very open to feedback.
I haven't used SharpDevelop's tools, however, so I can't really compare them.

Greetings;
From what I've followed and read on-line during the Visual Studio 2010 Beta program and after, there seems to be no direct IDE support for IronPython in Visual Studio .NET 2010:
http://www.itwriting.com/blog/2158-why-f-rather-than-ironpython-in-visual-studio-2010.html
However, there is a Dynamic Language Runtime Support for the .NET 4.0 Framework using IronPython through a stable release of IronPython 2.6.1 on CodePlex:
http://ironpython.codeplex.com/releases/view/36280, but again, there is no direct support for the Visual Studio .NET 2010 IDE.
As for IronPython support in SharpDevelop, the IDE has full support for WinForms and Console based applications, and debugger support for IronPython, including 2.6.1 and the .NET 4.0 Runtime beginning with SharpDevelop 3.2 RTW. Matt Ward, who has headed up the IronPython and SharpDevelop IDE integration efforts has been very active and helpful through the forums and his blog entries. I was working on a small project in IronPython using SharpDevelop, and for the questions and bug that I found during SharpDevelop 3.0 Beta 1, Matt's support and turnaound time for IronPython issues was tremendous.
With this in mind, if you're looking for the productivity gains of using an IDE, with source code debugging support for IronPython applications and all of the benefits of using the .NET 4.0 Framework and DLR Support, you may want to start with SharpDevelop.
I hope this was of help...

Related

Visual Studio 2010 target framework 2.0 vs working on Visual Studio 2005 pros and cons

I'm new to Visual Studio 2010 and have both Visual Studio 2005 and 2010 installed on my PC.
I need to work on a windows application that needs to run under the 2.0 .net framework, but I'm not sure which version of Visual Studio would be more suitable for developing this application. Please help me.
I'd go with 2010 - just due to the new refactoring support. And performance-wise my findings suggest that 2010 is somewhat better (especially if you have a decent workstation - especially graphics adapter).
Advantages
We can start taking advantage of the new tooling features, without having to immediately upgrade the clients and servers running our application’s to .NET 4.0.The improved multi-targeting support will ensure that this experience is even better and more accurate than before.
Disadvantages
If some of our team members still using visual studio 2005, there will be a problem when checking in project files.

Can I install visual c++ 2010 express edition with visual Studio 2010 professional already installed?

I want to do so because intellisense option for clr console application is not working in visual studio 2010..
Yes, you can. They will run side by side.
However, if you have professional installed, wouldn't it be better to update the install and add c++ to it?
There is no Intellisense support for C++/CLI in Visual Studio 2010 (including in SP1 and the Express edition).
I've been using Visual Assist X from Whole Tomato software for the last few weeks and am very happy with their Intellisense support. From the research I did, it appears that theirs is about the best going (Resharper for example does not support C++).
No, this is not going to solve your problem. The IntelliSense parser is exactly the same in the Express edition, it also doesn't support parsing C++/CLI code. You'll need to find the installer for the VS2008 Express edition. That's going to be quite difficult, you cannot get it from Microsoft anymore. Or you'll have to bear and grin it until the next version for Visual Studio, the Microsoft team promised it will be supported again.
Do keep in mind that you are not writing C++ code, C++/CLI is a very distinct language. There isn't much point in writing complete console mode apps in C++/CLI, you might as well use C#. There's an Express edition for that as well, IntelliSense works.

Does Visual Studio 2010 have tooling support for IronRuby?

I am interested in the following features: Code highlighting, Intellisense, Refactorings, Code navigation (Go to Definition etc.).
If this functionality is missing from Visual Studio 2010 maybe Microsoft is planning to add these features in the future or there are community project to develop IronRuby tooling add-in?
Good news! IronRuby Tools for Visual Studio 2010 were released on 21 OCT 2010 and are available here: http://ironruby.codeplex.com/releases/view/49097
Microsoft has recently released IronPython tools for Visual Studio and they are working on the same thing for IronRuby.
No planned release date yet but they are working on it.
no native support. not by microsoft directly
Ruby in Steel
This add-on to Visual Studio by SapphireSteel makes developing Ruby applications inside Visual Studio much more natural. It adds new Ruby project types, intellisense, code snippets, and syntax highlighting. But it costs money.
To clarify, SapphireSteel Software released a free IronRuby IDE way back in February 2008 - with code coloring, project management, build and run, visual form design etc. However, the IronRuby team was not overwhelmingly supportive of this project and we have now ceased development as explained here: http://www.sapphiresteel.com/Goodbye-IronRuby-Hello-Ruby-In
best wishes
Huw Collingbourne
SapphireSteel Software

How to use IronPython with Visual Studio 2008

I've tried using the IronPython integration extension provided by Microsoft. But it does not work with Visual Studio 2008.
Is there a proper VS 2008 IDE extension for IronPython?
For IronPython 1.1 support (whose syntax mirrors CPython 2.4), I successfully built and installed the sample from the Visual Studio 2008 SDK 1.0 with the Professional Edition of Visual Studio 2008 SP1. It will work with any edition from Standard up to Team Suite. It definitely won't work with Express Edition due to limitations built in to Express.
For IronPython 2.0 (whose syntax mirrors CPython 2.5), there is currently no good way to write and debug under Visual Studio 2008, and unfortunately, it would be a significant undertaking to adapt IronPython Studio to host IronPython 2.0--one of the big updates in IronPython 2.0 was to base it on the Dynamic Language Runtime, and this breaks the tricks for enabling IntelliSense that were used previously such as static compilation.
Have you tried the IronPython Studio for VS 2008 Shell
Right now, there is no extension to run IronPython v2.0 on Visual Studio.
I'm new to both VS2008 and IronPython (but not Python itself): but it sure looks to me like i'm running IronPython 2.0.1 under VS 2008 Pro, albeit in a rather cumbersome fashion.
Follow the instructions at http://blogs.msdn.com/aaronmar/archive/2006/02/16/533273.aspx, with some modifications: search the MS website for the VS 2008 SDK instead, and the path to the IronPythonIntegration solution is therefore in a slightly different (but predicatable) place.
Following on -- "Then, it should simply be a matter of hitting CTRL+F5 for Build & Run. This will launch Visual Studio using the "Experimental hive".". Yes, this launches another VS instance on top of the first one, but thankfully you only have to wait through the build process the first time.
The rest of the instructions worked for me: i built a simple test console app, and it worked as i expected. I haven't tried any .Net stuff yet, though.
Now if there were just an easy way to change sys.path to use the normal Python libraries ...
string code = #"100 * 2 + 4 / 3";
ScriptEngine engine = Python.CreateEngine();
ScriptSource source =
engine.CreateScriptSourceFromString(code, SourceCodeKind.Expression);
int res = source.Execute<int>();
Console.WriteLine(res);
For the complete tutorial and example code, check out the following link:
Extending your C# application with IronPython
http://blogs.microsoft.co.il/blogs/berniea/archive/2008/12/04/extending-your-c-application-with-ironpython.aspx
If you are just looking at using IronPython in ASP .NET websites (projects not supported), check out how to install Microsoft ASP.NET Futures (July 2007)

Can I compile legacy MFC applications with Visual Studio 2008?

I maintain several old MFC applications using Visual Studio 7 and I was considering upgrading to Visual Studio 2008. After reading this question, I realise that the Express edition will not be able to do this.
Does anyone know if I will be able to compile old MFC apps with VS2008 Standard edition or will I need to get the more expensive Professional edition ?
You'll have everything you need to build an MFC application with Standard edition. Be warned, though, if it is an application of any size or complexity it will not simply be a matter of upgrading the project/solution files and hitting F5. There are plenty of breaking changes between VS7 and 2008, most introduced in the V8 compiler. Roll up your sleeves.
Yes, the Standard edition includes support for MFC/ATL.
FYI you can compare the features

Resources