Prerequisites

I recommend you create a folder called Sitecore 10.1 and download everything you need from this list below into that folder before beginning this process. Please be aware that if you already have Sitecore 10 installed that you might not need some of the items below so just skip them if that is the case.

ItemsHow to get them

Windows 10 or greater

(All versions but Enterprise)

Windows 10 or greater will be needed to install all items needed for Sitecore 10.1

Sitecore 10.1.0 rev. 005207 (WDP XP0 packages)

Powershell 7.1.3

Release v7.1.3 Release of PowerShell · PowerShell/PowerShell · GitHub

Powershell Extensions 6.0Installation - Sitecore PowerShell Extensions

NSSM 2.24

https://nssm.cc/release/nssm-2.24.zip
Sitecore TDS (download the latest version, you might have to scroll down the page to see the download link)https://www.teamdevelopmentforsitecore.com/Download/TDS-Classic

Microsoft Visual C++ 2015 Redistributable

https://www.microsoft.com/en-us/download/details.aspx?id=53587
Visual Studio 2019 Professional

Please check that this is already installed on your computer.    If not you might have to talk to your manager about how to get a license to install it.   Other versions of VS 2019 should work as well but I didn't have any other version to test it out so I can't say that you won't run into any issues.

SQL Server 2019  or SQL Server 2017

(Standard Edition)

Please check that this is already installed on your computer.    If not you might have to talk to your manager about how to get a license to install it.   


To determine what version you have you can open SQL Server Management Studio and run this query

SELECT @@VERSION

If should return something like this below

Microsoft SQL Server 2017 (RTM-GDR) (KB4583456) - 14.0.2037.2 (X64) Nov 2 2020 19:19:59 Copyright (C) 2017 Microsoft Corporation Express Edition (64-bit) on Windows 10 Enterprise 10.0 <X64> (Build 19041: ) (Hypervisor)

Microsoft SQL Server Data-Tier Application Framework (DacFx)

Download Microsoft® SQL Server® Data-Tier Application Framework (18.3.1) from Official Microsoft Download Center

SQL Server System CLR Types

Download Microsoft SQLSysCLRTypes from Official Microsoft Download Center

Microsoft .Net Framework 4.8.0

If you would like to know what version of .Net you have installed you can go to this page to figure it out
https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed

Download .NET Framework 4.8 | Free official downloads (microsoft.com)


Web Platform Installer 5.0

  • Web Deploy 3.6 for Hosting Servers (Use Web Platform Installer to install)
  • URL Rewrite 2.1 (Use Web Platform Installer to install)
https://www.microsoft.com/web/downloads/platform.aspx#additionalDownloads

Solr 8.4.0

(You can check the SOLR compatibility of each Sitecore instance here: https://kb.sitecore.net/articles/227897)

Solr 8.4.0 downloads

JRE (Java Runtime Environment) 

(This might not be needed if you have installed Solr before)

Java SE Runtime Environment 8 - Downloads (oracle.com)
SCORE Visual Studio Solution Template

SCORE Visual Studio Solution Scaffolding v3.5.8

SCORE Tenant ScaffoldingSCORE 3.1.1.0 Tenant Scaffolding Automation

Install Prerequisites

  1. Visual Studio 2019

  2. Sitecore TDS 6.0

  3. Powershell 5.1 and 7.1.3+

  4. Microsoft .Net Framework 4.8.0

  5. Microsoft Web Platform Installer 5.0

Sass (Dart)

Create MySite folder with VS Scaffold

Install SQL Server 2019

Install Webpack

Run command (CMD): 'npm install -g webpack' (use -g to install it globally). Make sure you have Node js. installed on your computer and your run the command prompt as an administrator. You can download Node js. from the following link: https://nodejs.org/en/download/

Install Solr 8.4.0

SOLR SSL Setup


set SOLR_SSL_KEY_STORE=etc/solr-ssl.keystore.jks
set SOLR_SSL_KEY_STORE_PASSWORD=secret
set SOLR_SSL_TRUST_STORE=etc/solr-ssl.keystore.jks
set SOLR_SSL_TRUST_STORE_PASSWORD=secret


Install SIF 


Enable Contained Database Authentication

Open Sql Server Management Studio

Open a new query window and run this script -

EXEC sp_configure 'contained database authentication', 1;
GO


RECONFIGURE;
GO


Install Sitecore 10.1

.\Automation\Sitecore-Versions\10.1\install.ps1 -xp0package "Sitecore 10.1.0 rev. 005207 (WDP XP0 packages).zip" -site "mysite" -solrUrl "https://localhost:8983/solr" -solrRoot "C:\solr-8.4.0\" -solrService "SOLR - MySite" -sqlServer "<Your SQL Server Instance Name>" -sqlAdminUser "sa" -sqlAdminPassword "<Your Password>" -SitePhysicalRoot ".\sandbox\" -license ".\license.xml"

Rename the Visual Studio Solution

Open a DOS window in Admin mode and then do the following

It should look something like this below but you might or might not get the security warning

If you used DART SASS instead of Ruby SASS then you will need to change your MySolution.MySite.Web CSPROJ file so that it will contain the following compiler options for SASS.

Just right click on the MySolution.MySite.Web and click "Unload Project" then right click on the Web project again and click "Edit MySolution.MySite.Web.csproj".   In the opened project file you will need to 

scroll down to the "CompileSass" area and change it to the one below.    Save the changes and then right click on the project again and click "Reload Project"


<Target Name="CompileSass" AfterTargets="Build">
    <Exec Command="sass Areas\MySite\scss\main.scss Areas\MySite\css\main.css" IgnoreExitCode="false" />
    <Exec Command="sass Areas\MySite\scss\page_editor.scss Areas\MySite\css\page_editor.css" IgnoreExitCode="false" />
</Target>


Install Powershell Extensions

Install SCORE


Select the following SCORE Nuget packages only and install them in the order selected

Don't install the NuGet packages showing Core or PROD in the name

Create MySite Tenant in Sitecore

Add MySite Tenant Cores to Solr

SCORE needs 2 indexes that have to be added to Solr

The config files were added to the solution and are set by default to disabled so remove the .disabled part in the name

Solr doesn't know they exist so you have to add them as a core manually

You should create the following folders for 'mysite_tenant_master_index'

Do the same for 'mysite_tenant_web_index' and you should have the following

Once that is done then do the following

Build your solution

Using the Sandbox build configuration, build your solution.


Congratulations you have now set up MySite with Sitecore 10.1 and SCORE 3