Pieter van der Westhuizen

Setting up your PC for SharePoint 2010 development

If you’ve been following our blog lately, you would’ve noticed a series of articles about Office 365. It is no secret that Office 365 will help move Office to the cloud and as developers we need to gear up for it.

As I’ve mentioned before a major part of Office 365 is SharePoint and in this article I’ll walk you through the process of preparing your PC’s development environment. Visual Studio 2010 has very nice integration with SharePoint 2010 and makes it very easy for developers to develop, deploy, test and debug their SharePoint solutions. In order to be able to use the SharePoint tools in Visual Studio, your development machine needs to have Visual Studio 2010 and SharePoint 2010 installed.

Fortunately you can install SharePoint on Windows 7 and Vista, as long as it is the 64-bit versions. We’ll walk through the necessary steps in order to install SharePoint 2010 on Windows 7.

Prerequisites

Next, we need to install the necessary prerequisites that SharePoint 2010 requires. If you do not have SQL Server and Visual Studio 2010 already installed, please do so now. In most cases installing SQL Server and Visual Studio should also install these two prerequisites:

Also, if you do not already have it installed install the following:

If you’re not using SQL Server 2008 R2 make sure you have Microsoft SQL Server 2008 KB 970315 x64 installed before proceeding.

Next, you need to make sure all the required Windows features are enabled. To do this go to Control Panel > Programs > Programs and Features and click on the Turn Windows features on or off link.

Make sure all the required Windows features are enabled.

SharePoint Installation

The default installation of SharePoint 2010 does not work on Windows 7 so you need to edit a configuration file and install the prerequisites manually. I will assume you have a SharePoint installation disc or an ISO image downloaded from your Microsoft MSDN account.

First, copy all the files from the installation disc to a folder on your local drive. Once all the files are copied to a local folder, in my case it is C:\SharePoint, double-click the setup.exe file. You will be presented with the following message:

Setup error

To get around this, open the config.xml file in the Files\Setup folder and add the following setting inside the <Configuration> tag:

<Setting Id=”AllowWindowsClientInstall” Value=”True”/>

Run setup.exe again and you will be prompted to enter your SharePoint Product key and accept the terms of use. When prompted to choose the installation, select Standalone.

When prompted to choose the installation, select Standalone.

The SharePoint installation will start.

SharePoint is installing

Configuration Wizard

After the installation has completed successfully you need to start the SharePoint Products and Technologies. Do this by browsing to the C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN folder and running psconfigui.exe

You will receive a warning that Windows 7 is not supported as a production environment for SharePoint 2010. Click OK to continue. Also, when prompted to restart a number of services click Yes. The configuration wizard will start.

SharePoint configuration wizard

Once the configuration wizard has completed it will automatically take you to your new SharePoint site.

Your new SharePoint site

Next, download the Visual Studio 2010 SharePoint Power Tools. It is a Visual Studio 2010 extension that amongst other things contains an item template for a sandboxed Web part for use with SharePoint Online. The last and very important tool you must install is SharePoint Designer 2010. This free download makes it very easy to quickly add new lists, forms, workflows and much, much more to SharePoint.

You are now ready to start developing for SharePoint!

Thank you for reading. Until next time, keep coding!

You may also be interested in:

8 Comments

  • Michael Borisov says:

    Command to simplify installation of Windows features:

    start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ManagementScriptingTools;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-RequestFiltering;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;WCF-HTTP-Activation;WCF-NonHTTP-Activation

    I used that manual https://msdn.microsoft.com/en-us/library/ee554869(v=office.14).aspx

  • Pieter van der Westhuizen says:

    Hi Michael,

    That will make things easier. Thank you for your comment!

  • an says:

    does this require 64bit windows7?
    what are other requirements?

  • Pieter van der Westhuizen says:

    Hi there,

    Yes, you do need the 64-bit version of Windows 7. Please see the prerequisites mentioned in the article for the other requirements.

    Thanks for your comment!

  • Bob Carsto says:

    Hi Pieter,

    In your blog you install Visual Studio 201 first, then install SharePoint 2010, I heard that that opposite is required, that one must install SharePoint 2010 first: https://msdn.microsoft.com/en-us/library/ee554869.aspx

    I already have Visual Studio 2012 installed and would be glad to be able to simply install SharePoint 2010. Do you think this will work?

    Thanks
    Bob

  • Pieter van der Westhuizen says:

    Hi Bob,

    I got SharePoint working with a PC that already had Visual Studio 2010 installed, so it should work for you as well.
    Just make sure you install all the necessary prerequisites.

    Good luck and thanks for your comment!

  • ali says:

    i got this message when i modify in the \Files\Setup config
    the setup configuration file \Files\Setup\config.xml is not valid, run setup again without using setup configuration file , or fix configuration file.

  • Pieter van der Westhuizen says:

    Hi ali,

    Make sure that all you’ve changed in the config file was setting the value to True for the Setting with the Id AllowWindowsClientInstall.

    Also, if you copied and pasted the change from this blog make sure the apostrophes (“) are correct. I know when copying and pasting they do sometimes come out all wrong.

    Hope it helps!

    Thanks for your comment.

Post a comment

Have any questions? Ask us right now!