First look at ECO IV for Visual Studio 2005/2008…

I recently blogged about the fact that the ECO Team started a Field Test for ECO for Visual Studio. 

Christmas is near… thus, the ECO Team released a new Field Test build for ECO for Visual Studio. The new installer supports automatic installation in Visual Studio 2005, Visual Studio 2008. The builds come with a modeler now. Whenever you create ECO models, VS starts an instance of EcoModeler by ModelMaker Tools. As I have used EcoModeler with ECO III already, I like this quite a lot. After installation you can see immediately that the installation was successful as ECO registers in the VS splash screen.

I have to note that it was quite difficult to take this screenshot. VS 2008 comes up in 1 second on my system. Thus, one has hardly time to press “Print Screen”. Sadly, there are some operations in VS that seem to take ages the first time you invoke them as almost nothing is being loaded into memory when you start it. I have to say though that  I like this quite a lot. Whenever you edit a XML file e.g. VS comes up and it is there just after you double click the XML file. If you double-click a pas-file it takes about 10-20 seconds until RAD Studio 2007 shows the file. I much rather had a short start time…but I know just as many folks at conferences who prefer a snappy IDE without load on demand and accept the long boot time. But back to ECO…

 If you select “File / New Project…”, ECO comes with a “solution wizard”. As MS has to use another terminology for anything (seen from the Delphi perspective *grin*), it had to be called a “Solution wizard”. Solutions are project groups in Delphi terms. However, as you will see shortly, ECO really makes use of solutions now as a single ECO application is split in different projects.

As you can see, ECO supports any .NET framework in Visual Studio 2008. Thus, you can target version 2.0, 3.0 or 3.5. This is awesome as version 3.5 comes with Linq and even if you do not want to use any databases or datasets, Linq is really useful for data structures as well. I hardly implement a C# class that does not make use of Linq. If you select “Eco solution” (not a good name yet, but it is beta…), the wizard appears:

Just as you can do in RAD Studio 2007, the wizard allows you to select from a number of presets to get started quickly. However, you can customize anything. In my opinion, the new structure of the wizard is much clearer than before. If you select the “Winform Application” preset and click “OK”, the wizard creates 3 projects in the solution:

The project marked with 1 is the actual application that contains your main form and will be the exe file that you run. Of course, you can have more than one “assembly” with Winforms, the wizard gets you set. A new feature is the separate project for the ECO Space. Furthermore, the ECO Space always has the same “structure”. In all previous ECO versions the ECO Space for an ASP.NET Web application looked differently from a Winforms application. Finally, there is one approach for all application types! The model is also always seperate in a different assembly, which makes it easy to use one model for different applications. You can as many model projects to your solution as you want. Visual Studio compiles the complete solution automatically and the wizard sets up the dependencies for you. Thus, you do not need to be careful when changing the model that your application picks up these changes. The IDE takes care of that for you. If you right click on a ECO package, you can start the modeler:

This is ECO Modeler as we know it, with lots of improvements. I do not know when the last version was released, but this version “feels” much improved with regard to the last version for ECO III. You have visual shortcuts to add classes, attributes, methods and even to create associations between classes. More of that in another blog post.

Finally, if you design your user interface you will meet old friends. Borland Developer Studio 2006 had all those components, but since Winforms was dropped in RAD Studio 2007, the Winform features of ECO were no longer available.

The worst thing about Visual Studio 2008 which just drives me crazy becomes very evident when having a lot of components in the toolbox. There is no filter function as in RAD Studio. It drives me crazy! You have to use the mouse all the time to add components to your form.

Summed up, ECO is already rock solid in VS. I have had no crashes using it. Some of the integration features need some fine-tuning, the name of the wizard being one example. Also the feedback to the user when doing some actions could be more, but I have to point out that it is a  Field Test build. I love the approach to use separate projects. The build process is being made very easy. Sadly, I miss some of the comfort that the VCL gives me using RAD Studio 2007. However, there are quite a few features that are only available in Winforms, so you really have to weigh in both sides. As we are in the .NET world, we can gladly write the GUI in Delphi using VCL.NET!

If you are interested in trying ECO for Visual Studio, go to capableobjects.com, the Field Test is public and thus open to anybody. Be aware that you need Visual Studio 2005 or 2008, the Express Editions are not supported.