Start: Set up the development environment for SharePoint 2013
Published: July 16, 2012
Learn the steps to set up a SharePoint 2013 development environment by installing SharePoint 2013 and Visual Studio 2012.
Applies to: SharePoint Foundation 2013 | SharePoint Server 2013
First, decide what you want to build (to learn more about apps for SharePoint, see Apps for SharePoint overview):
-
If you want to build solutions that use the server-side object model exclusively, we provide those steps in this article.
-
If you want to create and publish apps for SharePoint, you should consider getting an Office 365 developer site. Then, follow the instructions in How to: Set up an environment for developing apps for SharePoint on Office 365 and Sign up for an Office 365 Developer Site.
-
If you want to develop apps for SharePoint for a corporate catalog—such as apps that have full control permissions—you'll work with a full installation of SharePoint 2013 on a local computer and configure that installation for app isolation. We provide the steps to set up a local SharePoint installation in this article. Then, if you want to create apps for SharePoint on your local installation, follow the steps in How to: Set up an on-premises development environment for apps for SharePoint.
The requirements for a development environment for an installation of apps for SharePoint are less stringent and costly than the requirements for a production environment. If you are setting up a production environment installation, see Overview of SharePoint 2013 installation and configuration and Hardware and software requirements for SharePoint 2013 for those instructions.
In any development environment, you should use a computer with an x64-capable CPU, and at least 16 GB of RAM to install and run SharePoint 2013; 24 GB of RAM is preferable.
Depending on your specific requirements and budget, you can choose one of the following options:
-
Install SharePoint 2013 on Windows Server 2008 R2 Service Pack 1 x64 or Windows Server 2012.
-
Use Microsoft Hyper-V and install SharePoint 2013 on a virtual machine running a Windows Server 2008 R2 Service Pack 1 x64 or Windows Server 2012 guest operating system. See Use best practice configurations for the SharePoint 2013 virtual machines and Hyper-V environment for guidance on setting up a Microsoft Hyper-V virtual machine for SharePoint 2013.
Note
|
|---|
|
We support installation of SharePoint 2013 only on Windows Server 2008 R2 Service Pack 1 x64 or Windows Server 2012. If you want to develop apps for SharePoint for SharePoint 2013 on Windows 7 or Windows 8, you can sign up for an Office 365 Developer Site and develop apps remotely. See How to: Set up an environment for developing apps for SharePoint on Office 365 for instructions about how to create this sort of development environment. |
SharePoint 2013 requires your operating system to have certain prerequisites installed before installation begins. For this reason, SharePoint 2013 includes a PrerequisiteInstaller.exe tool that installs all of the prerequisites for you. Run this tool before running the Setup.exe tool.
-
Run the PrerequisiteInstaller.exe tool.
-
Run the Setup.exe tool included with your installation files.
-
Accept the Microsoft Software License Terms.
-
On the Choose the installation you want page, choose Stand-alone.
Figure 1. Installation type choice
-
If any errors occur in the installation, review the log file. To find the log file, open a Command Prompt window, and then type the following commands at the command prompt. A link to the log file also appears when the installation is complete.
cd %temp dir /od *.log
-
After the installation is complete, you are prompted to start the SharePoint Products and Technologies Configuration Wizard.
Note
The SharePoint Products and Technologies Configuration Wizard can fail if you are using a computer that is joined to a domain but that is not connected to a domain controller. If this failure occurs, connect to a domain controller either directly or through a Virtual Private Network (VPN) connection, or sign in with a local account that has administrative privileges on the computer.
-
After the configuration wizard is complete, you see the Template Selection page of the new SharePoint 2013 site.
Figure 2. Choose site template page
When you install Visual Studio 2012 and Office Developer Tools for Visual Studio 2012, you get all of templates and tools to develop SharePoint 2013 on your local development machine.
-
See Installing Visual Studio for instructions about installing Visual Studio 2012.
-
After you install Visual Studio 2012, download and install Office Developer Tools for Visual Studio 2012 and the SharePoint Client Components. You can install the tools and client components by going to the Downloads page of the Apps for Office and SharePoint Developer Center and choosing on the link for the web-based platform installer (WebPI) that installs the tools and assemblies that you will need to develop apps for SharePoint. This version of the tools and assemblies will work on a SharePoint-hosted, provider-hosted, or autohosted app for SharePoint, and you can use the assemblies in the client components to build a web application or a client application connecting to SharePoint that is hosted or running on an x86-bit platform. If you are targeting an x64-bit web application, then you will need to install the x64-bit versions of the required assemblies separately.