Install Sitefinity in MVC mode
Overview
Using this mode, your Sitefinity CMS can have MVC pages only. This mode uses the following setup:
|
Types of pages |
ASP.NET MVC |
|
Backend |
Sitefinity CMS |
|
Frontend |
Sitefinity CMS (running on ASP.NET framework 4.8, |
You can install Sitefinity CMS by installing Telerik.Sitefinity.All NuGet package on a blank web application.# Install Sitefinity in MVC mode
NOTE: To install Sitefinity CMS using NuGet, you must use Visual Studio 2017 or later. This article uses Visual Studio 2019 as a reference.
To install Sitefinity CMS in a blank web application using a NuGet package, perform the following:
Create a blank web application
To do this, perform the following:
- Open Visual Studio.
- In the toolbar, click File » New Project…
The Create a new project window appears. - In the All languages dropdown, select C#.
- In the All platforms dropdown, select Windows.
- And in the All project types dropdown, select Web.
- From the list of projects, select ASP.NET Web Application (.NET Framework).
- In Project name, enter a name of your project.
For example, enterSitefinityWebApp - Choose a location to store your project.
- Enter a name for the solution.
For example, enterSitefinityWebApp - In Framework, select .NET Framework 4.8.
- Click Create.
- In the window that appears, select Empty and click Create.
Configure Sitefinity NuGet package sources
All the latest Sitefinity NuGet packages are uploaded to NuGet.org. There are certain third-party, legacy and proprietary packages that are not available on NuGet.org but are hosted on a Sitefinity NuGet repository. Therefore, we recommend configuring and using both repositories as package sources.
In Visual Studio, perform the following:
- In the toolbar, click Tools » NuGet Package Manager » Package Manager Settings.
- In the left pane, expand NuGet Package Manager.
- Select Package Sources.
- Add a new source by clicking the plus (+) button.
- Configure NuGet.org repository in the following way:
- In Name, enter:
NuGet.org - In Source, enter:
https://api.nuget.org/v3/index.json
- In Name, enter:
- Add a new source by clicking the plus (+) button.
- Configure Sitefinity NuGet repository in the following way:
- n Name, enter:
Sitefinity NuGet - In Source, enter:
https://nuget.sitefinity.com/nuget
- n Name, enter:
- To save your changes, click OK.# Install Sitefinity in MVC mode
Install Sitefinity CMS
IMPORTANT: When installing Sitefinity CMS 15.3 and newer via NuGet packages, you must use the console, All sources as a source and include the following flag to the command:
-IncludePrerelease. For example:Install-Package Telerik.Sitefinity.All -IncludePrerelease.
In Visual Studio, perform the following:
- In the toolbar, click Tools » NuGet Package Manager » Package Manager Console.
The Package Manager Console opens. - In Package source, select All. This way you use both nuget.org and nuget.sitefinity.com as sources.
- In Default project, select the empty project that you have created.
- Depending on whether you want to install the full Sitefinity CMS package or a light version:
-
To have all Sitefinity CMS modules installed in your project, install the
Telerik.Sitefinity.Allpackage by entering in the console:Install-Package Telerik.Sitefinity.All -IncludePrerelease -
To have only the core Sitefinity CMS modules installed in your project, install the
Progress.Sitefinitypackage by entering in the console:Install-Package Progress.Sitefinity -IncludePrereleaseNOTE: With these commands, you install the latest product update. If you want to install a specific version, you must use the command followed by
-Versionand the version number.
For example, enterInstall-Package Telerik.Sitefinity.All -Version 15.3.8500 -IncludePrereleaseProceed by adding any of the desired additional Sitefinity CMS modules. For more information, see Work with decoupled modules.
-
- Wait until Sitefinity CMS is installed on your empty project.
- Build your solution.
Setup the project
- Open the project in Visual Studio.
- In the Solution Explorer, open the context menu of your newly created project.
- Click View » View in browser.
Your project starts in a browser. - Install your license.
After the project initialized in the browser, the License activation page appears.
Perform procedure Activate a license. - Setup the project.
After you activate your license, the Project Startup page appears.
Perform procedure Setup the project.
Sitefinity CMS Dashboard appears.