Posts tagged with visual-studio - page 5

LINQ in C# Web Applications

I’m a big fan of the Web Application type that was previously available as an add-on to Visual Studio 2005 but thankfully got promoted to a standard citizen with Service Pack 1.

So with a little more time on my hands lately I’ve been delving into the wonder that is LINQ – part of the forthcoming Orcas release of technologies.

For those who’ve been living under a rock LINQ is a set of extensions to .NET that let you perform queries on objects in much the same way you would do on a database with SQL (except the syntax is backwards by comparison).

Now while the LINQ Preview CTP installs LINQ projects for C# Class Libraries, Windows Applications and Console Applications it inconveniently misses-out Web Applications!

You can drop this ZIP file in your %UserProfile%\My Documents\Visual Studio 2005\Templates\ProjectTemplates\Visual C# to gain a new ASP.NET LINQ Web Application project type for you to start with as often as you like as shown:

Window of the LINQ To SQL templates available

Or if you want to modify an existing Web Application simply:

  1. Open up the .csproj file in Notepad and replace <Import Project=”$(MSBuildBinPath)\Microsoft.CSharp.targets” /> with <Import Project=”$(ProgramFiles)\LINQ Preview\Misc\Linq.targets” />
  2. Add project references to: System.Data.DLinq System.Query System.Xml.XLinq

Hopefully more LINQ related posts as I get to grips with it.

[)amien

My 2006 development tools

Christopher Bennage wrote about his development tool set-up and encouraged others to do the same so here’s my current set-up.

Daily tools

  • Visual Studio 2005 – IDE of preference despite it’s sluggish behavior
  • SQL Server 2005 Management Studio – Took getting used to but it’s an improvement on 2000’s Enterprise Manager
  • AnkhSVN – Subversion support inside Visual Studio 2005
  • .NET Reflector – Searching .NET API or to find out what it’s doing
  • Web Application Projects – Stop using VS’s web sites and start using web applications!
  • Web Deployment Projects – Deploy to dev, test or live servers as easily as building a project

Not quite daily

  • CodeSmith – Need to get to grips with v4 to build our whole database layer in one hit
  • Trac – Bug tracking, milestones & wiki with integrated support for Subversion
  • TortoiseSVN – Check-in/out of non-project items (e.g. art assets)
  • Web Developer Extension – Trying CSS changes on-the-fly, validating pages etc. from Firefox
  • Firebug – Examining pages, the page DOM etc. from Firefox
  • KDiff – Excellent 3-way diff tool that works great with AnkhSVN
  • Subtext – Blogging system running here

On occasion

  • Visual C# Express and XNA – Messing with 3D graphics, controllers and pixel shaders
  • Ogre – Steve’s object-oriented 3D engine
  • Xcode and Cocoa – Still quite alien with it’s message-based calling mechanism but obviously powerful

Keeping an eye on

  • Eclipse – IDE for developing Java (C++ and C# support in various stages too)
  • Ruby on Rails – Interesting RAD approach to web development – Apple also supporting on Mac OS X 10.5
  • Sandcastle – Microsoft’s documentation tool that already seems to have had an impact on NDoc
  • SubSonic – Build-provider that generates an ORM on the fly and provides automatic developer-only db editing pages

Not used lately, still installed

  • Delphi 5/6 – Borland’s great RAD tool for non-.NET development, later versions support .NET too
  • JBuilder – Java development although I’d probably move to Eclipse
  • Visual Studio 2003 – Still required for the odd .NET 1.1 application/testing

[)amien

AnkhSVN 1.0 RC4 out

AnkhSVN has been updated since this post.

Secondary AnkhSVN iconsAnkhSVN is a Visual Studio add-in that delivers Subversion functionality where you need it and Arild has just made available release candidate 4 of the forthcoming 1.0 version.

Basic AnkhSVN iconsThe RC4 update sees some important fixes relating to deleting items and handling some non-core project types. Having recently looked at the Visual Studio API myself I’ll take my hat off to the team on having addressed these issues.

This release also the débuts the new icon set I’ve been working on and will be the first time my pixel-plotting icon skills are to be seen by more than a handful of people. Previous icon sets have been for very specific software with limited user bases such as Monitor/RA BBS monitoring software or the ZX Spin Spectrum Emulator.

Here’s a couple of samples. Yeah the hearts for the repository and washing machine for clean-up are unusual and they are all Firefox style…

[)amien

Visual Studio 2005 Service Pack 1 Beta experiences

Like most people I’ve run into my fair share of oddities and problems in Visual Studio 2005 including the dreaded VB compiler dying a death on reasonable-sized projects so I jumped at the chance to get my hands on the beta of SP1.

There are several versions of the service pack including one for Visual Studio 2005, one for each of the Express editions and one for the Team Foundation Server. My experiences here are with the 350MB SP1 beta for Visual Studio 2005.

Installer

The first major gripe is with the installer itself. It’s slow, it needs 2.5GB of free space to apply the SP and it doesn’t tell you to uninstall Web Application Projects until several minutes in so make sure you:

  1. Don’t need to use Visual Studio 2005 for about 25 minutes
  2. Have uninstalled Web Application Projects (you can keep Web Deployment Projects tho)
  3. Have over 2.5GB of free space once the installer is on your system

If you’re short of disk space you could try turning on the Compress contents option on c:\windows\installer if you don’t mind waiting a little longer.

What’s New?

Web Application Projects are now built in!

What’s Fixed?

The list of fixes is quite comprehensive although many of the KB articles state ‘Info Not Yet Available’. It also includes all the previous hot-fixes to VS2005 (many of which are available on request only).

There are some interesting ones regarding performance of large C++ and VB.NET projects/solutions.

Interested?

If you feel like giving it a shot head over to to MS Connect and grab it but be quick, the beta ends October 31st. The beta is available in English and Japanese only.

[)amien