Sitefinity CMS NuGet packages repository

NuGet is a package manager that is free and open source. NuGet is a Visual Studio extension that supports the .NET framework. With NuGet you can produce and consume packages.

Sitefinity CMS supports NuGet packages and has a public repository.

For more information about using NuGet packages, see Managing NuGet Packages.

To download and use NuGet packages, visit Sitefinity NuGet Repository.

Using Sitefinity NuGet Packages

Prerequisites

  • If you are using Visual Studio 2010 or Visual Web Developer 2010 Express, you must have installed manually NuGet through the Visual Studio Extension Manager.
  • If you are using Visual Studio 2012 (except Team Foundation Server) or if you are using Visual Studio 2013, NuGet is installed by default. You can still manually install NuGet from NuGet Package Manager for Visual Studio 2012 or NuGet Package Manager for Visual Studio 2013.

Clear the NuGet cache files. To do this:

  1. In Windows Explorer, open the %localappdata%\NuGet\Cache folder.
  2. Select all files and delete them.

Add Sitefinity NuGet Server

To add Sitefinity NuGet Server as a package source in Visual Studio:

  1. In Visual Studio, navigate to Tools -> Options -> NuGet Package Manager -> Package Sources.
  2. To add new source, click the plus (+) button. 
  3. In the respective input field, enter the following data:
  4. To save your changes, click OK.

Install NuGet packages

  1. In Visual Studio, from the context menu of your project choose Manage NuGet Packages…
  2. Expand the Online node and click Sitefinity NuGet Server.
  3. Browse for each of the packages required for your application.
    Install each package.
  4. Close the window.

All assemblies references are added to the project references.

Upgrade NuGet packages

Each class library in a Sitefinity project has:

  • a number of NuGet packages installed
  • packages.config file

The packages.config file lists details regarding the ID and version of each NuGet package in the project. Upon building the project, each NuGet package is restored to the version specified in the packages.config file.

When there is a new version of Sitefinity, you can upgrade the NuGet packages, installed in your project, to their newer versions.

To upgrade the NuGet packages:

  1. In Visual Studio, navigate to View » Other Windows » Package Manager Console.
  2. Run the following command for each class libraryUpdate-Package <PackageName> -Version <Version> -Source http://nuget.sitefinity.com/nuget

EXAMPLE: Update-Package Telerik.Sitefinity.All -Version 7.0.5109.0 -Source http://nuget.sitefinity.com/nuget

NOTE: If you are upgrading your Sitefinity CMS to a newer version, whcih requires additional changes to the web.config file, check the Upgrade procedure.

For more information about creating a Sitefinity CMS project using NuGet packages see:  Create a project using Nuget packages

For more information about upgrading your Sitefinity CMS website using NuGet packages refer to: Upgrade a project with NuGet package

 

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?

Next article

Login