Sitefinity CMS NuGet packages repository
NuGet is a package manager for .NET that is free and open source. Visual Studio has a built-in NuGet extension. 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 the latest Sitefinity CMS NuGet packages, visit Nuget.org or Sitefinity NuGet Repository for legacy, third-party and proprietary packages that are not available on Nuget.org.
Using Sitefinity NuGet Packages
Prerequisites
Clear the NuGet cache files. To do this:
- In Windows Explorer, open the %localappdata%\NuGet\Cache folder.
- Select all files and delete them.
Install NuGet packages
- In Visual Studio, from the context menu of your project choose Manage NuGet Packages…
- Select nuget.org as a package source.
- Open the Browse tab.
- Browse for each of the packages required for your application.
Install each package.
- 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:
- In Visual Studio, navigate to View » Other Windows » Package Manager Console.
-
Run the following command for each class library: Update-Package <PackageName> -Version <Version> -Source https://api.nuget.org/v3/index.json -IncludePrerelease
EXAMPLE: Update-Package Telerik.Sitefinity.All -Version 7.0.5109.0 -Source https://api.nuget.org/v3/index.json -IncludePrerelease
NOTE: If you are upgrading your Sitefinity CMS to a newer version, which 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 Install Sitefinity CMS
For more information about upgrading your Sitefinity CMS website using NuGet packages refer to Upgrade procedure.
Add Sitefinity NuGet Server
To add Sitefinity NuGet Server as a package source in Visual Studio:
- In Visual Studio, navigate to Tools » Options » NuGet Package Manager » Package Sources.
- To add new source, click the plus (+) button.
- In the respective input field, enter the following data:
- To save your changes, click OK.