Visual Studio 2008 Beta 2: a first look

Daily Newsletters

Sign up to ZDNet UK's daily newsletter.

PREVIEW

Visual Studio 2008, codenamed Orcas, has been in development since before the release of its predecessor, Visual Studio 2005. The new version is aimed at, and has been developed alongside, Windows Vista and the new facilities it provides.

Whether the lack of stable development tools for many of Vista's new features has affected the uptake of Microsoft's new desktop OS is a matter for discussion, but for now if you're interested in exploring what you can achieve with the new tools available, this Beta is probably the best way of doing it.

Beta 2 of Visual Studio 2008 comes nearly a year after the first Beta (a Community Technology Preview, as Microsoft terms it), and the full official release is still some months away.

Installation & interface
We installed Beta 2 on Windows XP Professional inside a VMWare virtual machine, although Microsoft offers prebuilt Virtual PC images if you're using its own virtualisation system. Along with Beta 2 itself you have the option of installing SQL Server 2005 Express to allow development of database-backed applications. Also installed is a beta of the .NET Framework 3.5, but you can still write for versions 2.0 and 3.0 of the framework from within VS 2008. When you create a project, the dialogue box gives you a choice of which version of the framework you want to target, and filters the list of project types accordingly.

At first glance there's virtually no difference in the user interface between VS 2005 and VS 2008. The basic layout is the same and most of the menu options are similar. However, in there is perhaps the single greatest advance in the new version of the IDE. Tucked away to the right of the main menu bar is a new 'Test' item. Testing — both Unit and Ordered testing — is now integrated into Visual Studio, complete with Wizards to help you create sets of tests for your libraries and applications. Although add-on Unit Testing facilities have been available from both Microsoft and third parties for some time, their integration into Visual Studio makes such facilities easier to use, although possibly at the cost of some portability between development environments.

Testing, Office tools, LINQ
Microsoft intends to implement many different test types, including load testing and manual testing, into VS 2008, but only Unit Testing and Ordered Testing — a number of tests executed in a specific order — have been implemented in Beta 2. To use the test facilities, you create a Test project, either directly or through the New Test wizard. Test Projects are language-specific, so if you've written .NET components in both VB and C#, you'll need to test each part separately, although the test projects can be part of the same Solution in VS 2008.

Built-in unit testing should allow developers working on VS 2008 to produce better-quality code. The Test View allows you to see all available unit tests.


Visual Studio Tools for Office (VSTO) is now integrated into Visual Studio, rather than being a separate add-on as it was before. Both Office 2003 and 2007 are supported, although to write an add-on for the latter you'll need to target the .NET Framework 3.5 Beta. You'll also need the relevant versions of Office installed, unsurprisingly.

Office development is integrated into Visual Studio, although you'll need to use the .NET Framework 3.5 Beta installed with VS 2008 to write for Office 2007.


The Language Integrated Query (LINQ) feature that's been talked about for some time is now supported in VS 2008. LINQ allows you to extract data from heterogeneous sources, such as SQL databases or XML files, using a consistent syntax. As well as the necessary compiler support in VS 2008 there's syntax completion when you're creating queries in LINQ. This gives you a boost in productivity over raw SQL strings, which have to be typed out longhand in Visual Studio, but not necessarily over other data access methods such as ADO.

Working with WPF
You can build applications for the Windows Presentation Foundation (WPF), previously known as Avalon, by creating a WPF Application project, available for .NET 3.0 or higher. This does mean you can develop and test WPF applications on Windows XP, although you won't be able to see the more advanced visual effects possible in Windows Vista, even if you can still write the code for them.

Applications for the Windows Presentation Foundation (WPF) are built using the XAML designer. This allows you to edit your code and get a live preview of the changes you're making.


Start a WPF project and VS 2008 creates the main application document, a first window document and code-behind C# or VB.NET documents for both. The idea behind XAML-based user interface creation is that a designer can edit the XML that defines the UI separately from the code, either in Visual Studio or using the Expression graphics tool. If you choose to use VS, the XAML Designer is where user interfaces for WPF are built. It shows you a preview of your window design that updates as you enter code, or you can build user interfaces visually. In contrast with the designers used for Visual Basic and C# user interfaces, you see both the preview and the XAML code on the same page, rather than on separate tabs. The preview pane also features a Zoom slider, allowing you to see more of your form in the screen space available, or you can collapse either pane and see just the design or code.

We found that hand-coding XML to create the UI was generally faster than trying to place elements using the visual builder — as you'd expect, there's code completion available for XAML markup, and you generally have to edit the markup of items you've placed visually anyway.

Not ready for prime-time
Although we encountered virtually no stability problems — as opposed to incomplete features — with Beta 2 of VS2008, we still don't recommend using it for production unless you're desperate to start targeting the native features of Windows Vista. The built-in Unit Testing is a great step forward and will probably be a compelling reason to upgrade once the rest of the test facilities are implemented. However, this is probably the only feature at present in VS 2008 that would be of interest to developers still working in native Win32 code. The Office and Windows Vista development features are great if you're targeting those platforms, but in themselves don't represent an advance in developer productivity.

 

Related stories

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

dede0202

Hello ALL USERS OF THE PIRATE BAY I WOULD PUT AN EXPLANATION ON PIRACY Story Idea ILLIGALE AND SHARING THOSE THAT NET Dissent NOT WELL BUT TO CA...

7 hours ago by dede0202 on The Pirate Bay infringes copyright, High Court decides
Sungwoo

do You know that? it can install 4G Ram. So i buy 4g and install It work! I can run call of duty 4,6,7 [Modern war... 1,2,3] Call of duty 1 was...

8 hours ago by Sungwoo on Loose Ends - Upgrading the Aspire One 522
itsajob

2. Bad idea. Making up patch cables loses you your commission from the cable supplier. 3. If you tidy up, other people can understand where the...

14 hours ago by itsajob on Ten IT jobs to save up for those rare lulls
Roberto_Store

Now On Sale, Unlocked iPhone 4S / Galaxy Note In Factory Box. Roberto-Techie(UK) ”Now on Sales” Smartphone, Android,Tablets,Gadget &...

18 hours ago by Roberto_Store on Samsung Galaxy S III lined up for sale
Paul Smyth

Is this classic FUD? One thing I would definitely have notice is a Mozilla threat to stop supporting GNU/Linux.

20 hours ago by Paul Smyth via Facebook on Firefox rapid release improves Fedora Linux
UnderINK

I agree with the previous commenter wholeheartedly. I couldn't say it better myself. This is very 'Big Brother'. And while I agree with protecting...

24 hours ago by UnderINK on European e-identity plan to be unveiled this month
Simon Bisson and Mary Branscombe

Nice to see that Turing's idea of a general purpose computer doing once-hardware-powered tasks in software is now universal ;-) Mary

1 day ago by Simon Bisson and Mary Branscombe on Software with everything
Jason Burchell

seriously now. I've only bothered to read a small bit of the comments. do me and the rest of the world a favour. stop saying it does not work or...

1 day ago by Jason Burchell via Facebook on Music industry negotiating over 24-bit downloads
Philip Charles Cohen

Read about it and weep, John Donahoe ... In addition to Visa’s V.me, there is now MasterCard’s PayPass digital wallet soon to arrive; another...

2 days ago by Philip Charles Cohen via Facebook on PayPal takes phone-based payments to the high street
apexwm

Leslie Satenstein : Where have you ever seen Mozilla even mention this? Firefox is the most popular browser in the GNU/Linux OS, so I don't see...

2 days ago by apexwm on Firefox rapid release improves Fedora Linux
songmaster

SHleG: Do you remember building a clockwork scorpion kit (I'm pretty sure I have a photo of it somewhere) — I think it was called something like...

2 days ago by songmaster on Software with everything
Chris Wortman

Good I love Yahoo! Their search engine is getting better than Google as of late. I find more of what I want on the first page, and usually within...

2 days ago by Chris Wortman via Facebook on Linux Mint 13 ramps up for KDE release
PatrickG

openhgs has made the point for Windows 8 multiple monitors without realising it! With Windows 7 you have to switch the mouse and so your focus...

2 days ago by PatrickG on Windows 8 could speed multi-monitor uptake
Leslie Satenstein

Mozilla has threatened to stop supporting Linux. I guess that UBUNTU is going with another browser. I indicated that if Mozilla stops supporting...

2 days ago by Leslie Satenstein via Facebook on Firefox rapid release improves Fedora Linux
Andy Bolstridge

Much as I abhor Microsoft's licensing practices, this is almost certainly down to purchasing IT equipment via 3rd party consultants - you get the...

2 days ago by Andy Bolstridge via Facebook on 6 million wasted licences and £1,200 PCs: welcome to government IT
Jack Schofield

@openhgs Windows users have had multiple desktops since Linus started writing Linux. They just haven't shipped as standard because not enough...

2 days ago by Jack Schofield on Windows 8 could speed multi-monitor uptake
Jack Schofield

@Phil at Cloud4 What, Microsoft gets £1,200 per PC and £1,622 per server? Gosh, I'm amazed....

3 days ago by Jack Schofield on 6 million wasted licences and £1,200 PCs: welcome to government IT
craigsc

You guys have no idea what is going on at Autonomy. Autonomy could have been a much more profitable organization. The sales operations at Autonomy...

3 days ago by craigsc on HP cuts 27,000 staff as Autonomy chief Lynch leaves
Moley

How does this impact on dual or multi booting? Seems to me to more or less prohibit this, from Windows 8 anyway. Will Grub 2 recognise Windows 8,...

3 days ago by Moley on Windows 8 start-up speed forces USB boot workaround
apexwm

I don't understand why there cannot be a slight pause during the boot process so the user can press a key. Many operating systems do this, even if...

3 days ago by apexwm on Windows 8 start-up speed forces USB boot workaround