Applies to: SharePoint Foundation 2022 | SharePoint Server 2022

When you lot create or customize SharePoint solutions, it is unremarkably best to develop the solution on a local computer where Microsoft SharePoint Server 2022 or Microsoft SharePoint Foundation 2022 is installed. This article describes how to install a evolution surround with Microsoft SharePoint 2022 and Microsoft Visual Studio 2022. The development environs that y'all create by using these instructions volition not support SharePoint farm installations, and you should not host agile production sites with this configuration. These instructions enable you to become started with an environment that is specifically suited to developing SharePoint custom solutions.

Note

For a Windows PowerShell script that installs and configures all of the prerequisites and products that you lot volition need to become started with SharePoint Server 2022 development, see SharePoint 2022 Easy Setup Script.

Step 1: Choose and Preconfigure the Operating Organization

The requirements for a development environment are less stringent and costly than the requirements for a production environment, and the guidelines in this topic practice non support a production environment installation. You have several options for preconfiguring the operating organization of a local computer on which you will install SharePoint 2022 for evolution purposes. The choice that you brand will be adamant by factors specific to your organization and surroundings (such as budget, the size of your evolution squad, and the operating systems that you and your organisation are already using).

In any development surroundings, y'all should use a computer with an x64-capable CPU, and at to the lowest degree 2 gigabytes (GB) of RAM to install and run SharePoint Foundation; 4 GB of RAM is preferable. Yous should use a computer with 4 GB of RAM to install and run SharePoint Server; six GB to 8 GB of RAM is preferable.

Post-obit are the options:

  • Install SharePoint on Windows Server 2008 Service Pack 2 x64 (or Windows Server 2008 R2 x64).

  • Apply Microsoft Hyper-Five and install SharePoint on a virtual machine running a Windows Server 2008 Service Pack 2 x64 (or Windows Server 2008 R2 x64) guest operating organisation.

  • Install SharePoint on Windows 7 x64, Windows Vista Service Pack i x64, or Windows Vista Service Pack 2 x64.

  • Utilize Microsoft Hyper-V and install SharePoint on a virtual machine running a Windows seven x64, Windows Vista Service Pack 1 x64, or Windows Vista Service Pack 2 x64 invitee operating organization.

Yous must install the WCF Hotfix for Microsoft Windows. The hotfix is available for Windows Server 2008 Service Pack 2, Windows Vista Service Pack 1, and Windows Vista Service Pack 2 and for Windows Server 2008 R2 and Windows vii.

If you are using Windows Vista Service Pack 1 or Windows Vista Service Pack two, install the hotfix for ASP.NET on IIS vii.0 (KB967535). This hotfix, which has already been installed on Windows seven, Windows Server 2008 Service Pack ii, and Windows Server 2008 R2, updates the ASP.NET common linguistic communication runtime (CLR) to recognize a new pick of optimizing compilations. To accept advantage of this choice, set the optimizeCompilations property of the <compilation> tag in your spider web.config file to true:

              <compilation optimizeCompilations="true">                          

This change significantly improves the initial page load time after you lot have installed a solution to the bin directory.

You must install the ADO.NET Data Services Update for .NET Framework iii.five SP1 to enable Remainder-based data services. This update is available for Windows Server 2008 Service Pack 2, Windows Vista Service Pack ane, and Windows Vista Service Pack two and for Windows Server 2008 R2 and Windows 7.

Windows 7 and Windows Vista cannot exist used for production deployments of SharePoint 2022. If you use Windows 7 or Windows Vista for your development environs, you should have access to a test environment that has the aforementioned operating system installed as your production environment. Windows 7 and Windows Vista are recommended only for programmer workstations and should be used merely for stand-alone installations. You can use a dissever Microsoft SQL Server instance, only you should not configure your installation every bit a SharePoint farm and yous should not host active sites on this configuration.

SharePoint requires your operating system to have certain prerequisites installed before installation begins. For this reason, SharePoint includes a PrerequisiteInstalle.exe tool that installs all of these prerequisites for yous. If your developer workstation is gear up up with the Windows Server 2008 Service Pack 2 or Windows Server 2008 R2 operating system, you tin can install SharePoint 2022 past running the PrerequisiteInstaller.exe tool (which is included with SharePoint 2022) to install the prerequisites that SharePoint needs, and and then run Setup.exe. However, you cannot utilize PrerequisiteInstaller.exe on Windows 7 or Windows Vista. For those operating systems, y'all must follow the additional instructions in this section.

Considering the default installation works simply for Windows Server 2008, y'all must edit one configuration file and install many of the prerequisites manually. Yous must perform each of the post-obit steps while logged on with an account that has ambassador admission on the local computer. These steps assume that yous received the SharePoint 2022 distribution as a single compressed executable file named SharePointFoundation.exe for SharePoint Foundation 2022 and setup.exe for SharePoint Server 2022.

To ready a developer workstation

  1. Re-create the SharePointFoundation.exe (or setup.exe) installation file to a folder on the estimator where you are installing SharePoint and doing your evolution, such as in the following path:

    c:\SharePointFiles

  2. Excerpt the installation files by opening a Command Prompt window, and then typing the following command at the directory location of the binder where y'all copied the installation files in the previous stride.

    For SharePoint Foundation 2022:

    c:\SharePointFiles\SharePoint /excerpt:c:\SharePointFiles

    For SharePoint Server 2022:

    c:\SharePointFiles\OfficeServer /extract:c:\SharePointFiles

  3. Using a text editor such as Notepad, open up the installation configuration file, config.xml, located in the following path: c:\SharePointFiles\files\Setup\config.xml

    Add together this line inside the <configuration> tag:

                      <Setting Id="AllowWindowsClientInstall" Value="True"/>                                  
  4. Save the configuration file.

  5. Review the complete configuration file. It now looks similar to the following for SharePoint Foundation 2022. The complete configuration file volition be longer for SharePoint Server 2022 (and therefore the text below cannot supersede the contents of that file), simply should employ the same setting for the AllowWindowsClientInstall attribute.

                      <Configuration>   <Package Id="sts">     <Setting Id="SETUPTYPE" Value="CLEAN_INSTALL" />   </Bundle>   <DATADIR Value="%CommonProgramFiles%\Microsoft Shared\Web Server    Extensions\xiv\Data" />   <Logging Blazon="verbose" Path="%temp%" Template="Microsoft Windows    SharePoint Services iv.0 Setup *.log" />   <PIDKEY Value="PIDKey Value" />   <Setting Id="UsingUIInstallMode" Value="one" />   <Setting Id="SETUP_REBOOT" Value="Never" />   <Setting Id="AllowWindowsClientInstall" Value="True"/> </Configuration>                                  

    All of the text in this configuration file is case-sensitive. If yous do not edit the configuration file as described in the previous stride or if you do not salvage the configuration file, when y'all try to run the installation you see the error message shown in Figure one.

    Figure 1. Setup is unable to proceed error message

    Setup is unable to proceed

  6. If you are using Windows Vista Service Pack 1 or Windows Vista Service Pack 2, you must install the following prerequisites:

    • .Internet Framework 3.5 SP1

    • Windows PowerShell 2.0

    • Windows Installer 4.5 Redistributable

  7. If you are using Windows Vista Service Pack 1, Windows Vista Service Pack 2, or Windows 7, install the following additional prerequisites:

    • Microsoft FilterPack 2.0. At a command prompt, type the post-obit:

                            c:\SharePointFiles\PrerequisiteInstallerFiles\FilterPack\FilterPack.msi                                          
    • Microsoft Sync Framework

    • SQL Server Native Client

    • Windows Identity Foundation (Windows6.1-KB974405-x64.msu)

    • Chart Controls (this is not required if y'all are going to install SharePoint Foundation 2022).

    • SQL Server Assay Services - ADOMD.Net (this is non required if you are going to install SharePoint Foundation 2022).

  8. Manually enable each of the required Windows Features. Y'all can practice this quickly by copying and running the following command in a Command Prompt window.

    Warning

    The following text contains line breaks.

                      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                                  
  9. Verify that the required Windows Features are enabled. The control in the previous stride enables all of the required features in the Internet Information Services section of the Windows Features dialog box (which y'all can access through the Programs section in Command Panel). Use Figure 2 and Effigy three to check that you accept enabled all of the required Windows Features. If whatever features are missing in your operating system, return to the Internet Data Services department of the Windows Features dialog box and enable them.

    Note

    The post-obit figures represent 1 Windows Features dialog box on a computer running the Windows 7 operating organization. They have been broken into ii figures for the sake of readability. The list of Windows Features will expect the same on Windows Vista.

    Figure 2. Beginning part of Windows Features list from Windows 7

    First part of Windows Features list

    Figure 3. Second part of Windows Features list from Windows 7

    Second part of Windows Features list

  10. Restart your figurer to consummate the changes that you made to Windows Features.

  1. To install SharePoint Server 2022 or SharePoint Foundation 2022, open a Command Prompt window, so type the following at the control prompt:

                      c:\SharePointFiles\Setup.exe                                  
  2. Take the Microsoft Software License Terms.

  3. On the Choose the installation you lot desire page, click Standalone to install everything on one developer workstation.

    Figure 4. Installation type choice

    Installation type choice

  4. If whatever errors occur in the installation, review the log file. To discover the log file, open a Command Prompt window, and and then blazon the post-obit commands at the command prompt. The log file is displayed at the end of the directory list.

                      cd %temp% dir /od *.log                                  

    Tip

    A link to the log file also appears when the installation is complete.

  5. Afterwards the installation is complete, you lot are prompted to start the SharePoint Products and Technologies Configuration Wizard. If y'all are using a local instance of Microsoft SQL Server 2008, install the Microsoft SQL Server 2008 KB 970315 x64 before starting the sorcerer. If your development environment uses a remote example of Microsoft SQL Server 2008 or if it has a pre-existing installation of Microsoft SQL Server 2008 on which KB 970315 x64 has already been applied, this footstep is not necessary. With the wizard open up, exercise the following:

    1. Install SQL Server 2008 KB 970315 x64.

    2. After the Microsoft SQL Server 2008 KB 970315 x64 installation is finished, complete the wizard.

  6. Alternatively, yous can choose not to run the magician by immigration the SharePoint Products and Technologies Configuration Sorcerer bank check box and endmost the completed installation dialog box. Install SQL Server 2008 KB 970315 x64, and then manually start the SharePoint Products and Technologies Configuration Magician by opening a Control Prompt window and executing the following command:

                      C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN\psconfigui.exe                                  

Warning

The SharePoint Products and Technologies Configuration Wizard may neglect if you are using a computer that is joined to a domain just that is not continued to a domain controller. If you meet this failure, connect to a domain controller either directly or through a Virtual Private Network (VPN) connection, or sign in with a local business relationship that has administrative privileges on the computer.

After the configuration wizard is complete, you see the new SharePoint site.

Figure 5. New SharePoint site

New SharePoint site

Stride 4: Install Visual Studio 2022 and Developer Documentation

  1. Install Visual Studio 2022.

  2. Download and install the Microsoft SharePoint 2022 SDK.

Pace 5: Create Hyper-V Images from Your Installed System

Later you gear up a working development environment on a concrete host computer, you tin store your setup as a virtual computer, so that others tin use it, or so that you tin can reuse this "make clean" installation at a later date. Alternatively, you can prepare up a development environment on a newly created virtual machine. The Hyper-V role in Windows Server 2008 Service Pack two provides infrastructure and management tools that enable you to create multiple server environments on a single host. For more information, see Getting to Know Hyper-V: A Walkthrough From Initial Setup to Common Scenarios. For a useful Windows PowerShell script that enables you to create a virtual hard drive (VHD) out of an existing Windows Server 2008 image, run across Install-WindowsImage PowerShell Script on MSDN Code Gallery.

If you are using Windows 7, you tin can too create a VHD on which SharePoint is installed in Windows Hyper-V, and then configure Windows 7 with BDCEdit.exe then that information technology boots straight to the operating arrangement on the VHD. This improves performance because the virtualization layer is not nowadays. It too enables you to use VHD differencing disks (VHDs that comprise just elements that differ from a unmarried base installation), which save deejay space and get in easier to roll back changes. Come across Deploy Windows on a Virtual Hard Disk with Native Boot to larn more than about this kind of configuration.

If y'all cull to create a single server installation on a virtual computer, the standard memory requirements still apply. Your virtual computer requires at least 2 GB (preferably four GB) of RAM. Virtualization also gives you the opportunity to create a server farm that includes more than i auto. In a farm installation of SharePoint Server 2022, each auto requires at least one.5 GB (preferably ii GB) of RAM. You could run a fully functional domain infrastructure on a setup installation such as the following example installation:

  • 2 virtual computers, each with ii GB of RAM

  • Domain controller and Microsoft SQL Server 2008 running on i figurer

  • SharePoint Server 2022 and two Web applications (including Key Assistants) running on another computer

Meet Too

Other Resource

What's New in SharePoint Server 2022

What's New in SharePoint Foundation 2022