WSS/SharePoint Extension 1.2 for Visual Studio 2008

Finally it’s out, get it while it’s hot.

Now you SharePoint developers no longer need to hesitate to upgrade to Visual Studio 2008 if you haven’t.

This will greatly help development of SharePoint-based solutions when you’re using Visual Studio 2008 by providing the following features:

Visual Studio 2008 Project Templates

  • Web Part
  • Team Site Definition
  • Blank Site Definition
  • List Definition
  • Empty SharePoint Project

Visual Studio 2008 Item Templates (items that can be added into an existing project)

  • Web Part
  • Custom Field
  • List Definition (with optional Event Receiver)
  • Content Type (with optional Event Receiver
  • Module
  • List Instance
  • List Event Handler
  • Template

SharePoint Solution Generator

  • This stand-alone program generates a Site Definition project from an existing SharePoint site. The program enables developers to use the browser and Microsoft Office SharePoint Designer to customize the content of their sites before creating code by using Visual Studio.

Installing the WSS/SharePoint extension on Windows XP/Vista

If you are using Windows XP/Vista and try to install the extension, it will display the following error:

The product can only be installed if Windows SharePoint Services 3.0 has been installed first.

Instead of replacing your OS with Windows 2003, launching a Virtual PC image preloaded with SharePoint, or trying to install SharePoint on Vista, you can simply create a registry entry to fool the extension installer as if you have installed WSS on your XP/Vista machine. Before following these simple steps, as with any registry modification, do so with caution at your own risk. You can create a registry backup if necessary.

Basically — under the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0 registry key — you need to add the following string value: Sharepoint="Installed".

Here is the step-by-step instruction:

  1. Run regedit from command prompt or Start > Run.
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0.
  3. If you cannot find the “12.0” folder, right click on the Web Server Extensions, select New > Key from the popup menu, and enter 12.0 as the new key name.
  4. Right click the “12.0” key/folder, select New > String Value from the popup menu, and enter Sharepoint as the name.
  5. Double click the newly created Sharepoint entry, and enter Installed as the value data.
  6. Now you can try to install the Sharepoint extension for VS 2008.

An easier way to do the above steps is to download the SharePointOnXP.reg file, extract, double click on the file. Then you can try to install the extension.

By the way, if you haven’t done so, you might also want to add SharePoint’s dlls to the GAC. Hence, Visual Studio won’t find troubles when compiling your SharePoint-based projects.

  • Clinton

    Hey, just a note. The instructions are slightly wrong as it seems like you need a folder names “12.0” instead of “12”. The .reg file worked just fine though, thanks much!

  • dumian

    it is “12.0” folder, otherwise does not work

  • denni

    Thanks Clinton and dumian, I’ve corrected the error.

  • Andrew

    What are the Sharepoint dlls i need to put in the GAC? can u pls tell me where i can find them? thanks.

    • denni

      Hi Andrew,
      Please go to any system with SharePoint already installed and navigate to the following folder:
      C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI
      In that folder, select all *.dll files prefixed with Microsoft., for example Microsoft.SharePoint.dll. Copy those dll files to your local workstation and deploy them to the GAC.

  • MarkB

    The registry tweak for ‘Installing the WSS/SharePoint extension on Windows XP/Vista’ is great! I was just getting ready to build out a VPC for my development work, but now I don’t have to.




    i’ve done what you said. The install was good but i’ve not the specific menus for sharepoint on my visual studio ? i dont understand why . i restart my pc but no change after that ??? do you have an idea


    about that ? (sorry for the last message gone too fast !!) thank you so much

  • denni

    Hi ALAIN,

    The extension will give you some SharePoint-related project templates. Follow these steps to find it:
    1. Open your Visual Studio.
    2. Click the File > New Project menu.
    3. Expand the Visual C# Project type.
    4. There you should find the SharePoint project type with the following templates: Team Site Definition, Blank Site Definition, List Definition, Web Part, and Empty.

  • Naresh

    I installed WSS 3.0 on my Vista box and everything works fine. I even have the registry key as described.
    But I am unable to install VSS extensions for WSS. I do not get any error, the installer simply doesn’t run.
    Any ideas?