Do you know the best SharePoint 2010 development environment?

Last updated by Unknown over 13 years ago.See history

Developing in ASP.NET is easy, you just press F5, Visual Studio spins up instance of the Cassini web server, and you can see your work execute. Developing in SharePoint is much harder as you need access to a local SharePoint server to see your work run.

In SharePoint 2007 there are three options, in SharePoint 2010 they have added one more. SetupSPEnviroment Figure: Setting up the development environment in SharePoint can give you a headache

Your development choices in SharePoint 2007 are:

  • Remote to a shared SharePoint development server

    Tip: This is best for people who do *not* need to have their own SharePoint server, such as designers, testers or content editors.

    Problem #1: By default you only get 2 concurrent accounts

    Problem #2: IISRESET clobbers other users.

  • Run your own local virtual machine (VM)

    Tip #1: Use an external drive to make it faster

    Tip #2: Use SSD to go even faster :)

  • Use ‘Boot’ to VHD (Recommended - most trouble but best performance)

    Note: Only if you have Windows 7 as the host

    See: Less Virtual, More Machine - Windows 7 and the magic of Boot to VHD

One of the biggest problem is that SharePoint 2007 can only be installed on Windows Server and most developer machines do not run Windows Server as the host OS. Tweaks to install SharePoint to Vista were available, but considered risky – since your development environment does not fully reflect the production server. In SharePoint 2010 – the scenery has changed a little. These are all your options now:

  • Remote to a shared SharePoint development server

    Tip: This is best for people who do *not* need to have their own SharePoint server, such as designers, testers or content editors.

    Problem #1: By default you only get 2 concurrent accounts

    Problem #2: IISRESET clobbers other users.

  • Run your own local virtual machine (Not recommended – because SharePoint 2010 is 64-bit only)

    Tip #1: Use an external drive to make it faster

    Tip #2: Use SSD to go even faster :)

    Tip #3: The 64-bit requirement means, you can’t use Virtual PC, and so you have to use either Hyper-V (which requires a Windows Server host), or VMWare

    Tip #4: The 64-bit requirement means, your host must be x64 to run the virtual machines in x64

  • Use ‘Boot’ to VHD (Recommended)

    Note: Only if you have Windows 7 as the host

    See: Less Virtual, More Machine - Windows 7 and the magic of Boot to VHD

  • Install SharePoint 2010 on your Windows 7 PC (Not Recommended)

    You are not fully representing the production server

Are there any shortcuts for Silverlight developers (for SharePoint consumption)?

  • Yes, you can easily deploy a xap file to a document library. However, if you need to debug it you will need the SharePoint 2010 object model.

    Tip: You could minimise your exposure to the object model by using a Repository pattern, which would allow you to debug and test your application without SharePoint, but ultimately you will need to debug and test in SharePoint.

UltimateSolution Figure: The Ultimate solution for SharePoint development environments is to have another machine under your desk. The Ultimate Solution

  • Get yourself a second machine (same as remote)
  • But don’t share it with anyone else!
We open source. Powered by GitHub