To get started with SharePoint 2010 development, you’ll most likely be using Visual Studio 2010, in which case you’ll need one of two things:
- A remote SharePoint 2010 server running somewhere with Visual Studio 2010 installed on it.
- A local copy of SharePoint running on your machine, which also has Visual Studio 2010 running. The idea here is you can develop on your own machine, independently of any remote server, and then deploy to the remote server when ready. Your very own sandpit!
The bottom line is: You need Visual Studio running on the same machine as SharePoint Server. This allows tight integration with the SharePoint server during development time, and makes deployment a one click affair.
The good news is as long as you have Vista (as if) or more likely Windows 7, you can run SharePoint locally. The bad news is it’s not so straightforward to get the darn thing on there. This post describes in the briefest way possible how to get SharePoint up and running on a Windows 7 machine.
For more detailed instructions these links are useful.
http://msdn.microsoft.com/en-us/library/ee554869.aspx (Microsoft’s original instructions)
http://sharepointjungle.com/2010/03/06/install-sharepoint-2010-on-windows-7/ (More detailed information, and useful for troubleshooting)
To do the following you need Windows 7 64-bit with around 4GB of RAM (or Vista, which isn’t covered in this article).
a) Install the following:
- WCF Hotfix for Microsoft Windows (KB971831)
- Microsoft Sync Framework
- SQL Server Native Client
- Microsoft Geneva Framework Beta 1 Runtime for x64
- ADO.NET Data Services v1.5
- Chart Controls
- SQL Server Analysis Services – ADOMD.Net
b) Run the following in a command prompt window. This enabled various features of Windows 7 required by SharePoint:
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
c) Restart your machine.
d) Download the free trial of SharePoint: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=22F68C37-9904-4C74-8E69-5DF025D73F0F
e) Once downloaded, extract the EXE using a zipping tool (e.g. WinRar), and locate the file FilesSetupconfig.xml. Open it up and add the following line inside the <configuration> tag.
<Setting Id=”AllowWindowsClientInstall” Value=”True”/>
f) Run setup.exe and you’re away!
To get started with SharePoint development, these videos are well worth a watch: