Blog

TDS How-To: Generate .update package, using assembly files from the Sitecore NuGet repository

November 30, 2016 | Kliment Klimentov

Sitecore .update packages now can be generated using NuGet packages, installed from the Sitecore NuGet repo. It is located at https://sitecore.myget.org/F/sc-packages

Using this method makes pushing the assembly .dll files to build server unnecessary. It also makes the setup of the environment easier and saves time, because it’s no longer necessary to specify the assembly paths. Managing Sitecore dlls versions is also easier because all versions are included inside the NuGet repository and can be located easily.

Using the Sitecore NuGet package repository inside Sitecore projects is a rising trend and is starting to be considered as a best practice in Sitecore web development.

Here's an example how to create .update package with TDS, using dll files from the Sitecore NuGet repository.

1. Create a TDS project and connect it to Web project.

2. Install the NuGet Packages from the Sitecore repository

a. Connect to the Sitecore NuGet Feed from within Visual Studio Options (add a new package source with the source URL being https://sitecore.myget.org/F/sc-packages)

Connect to the Sitecore NuGet Feed from within Visual Studio Options

b. Right-click on the solution and select Manage NuGet Packages for Solution

c. For Package Source select the newly created connection to the Sitecore NuGet Feed

For Package Source select the newly created connection to the Sitecore NuGet Feed

d. Search for Sitecore.Kernel.NoReferences, Sitecore.Logging.NoReferences, Sitecore.Update.NoReferences, Sitecore.Zip.NoReferences and install them to the Web Project. Be careful to install the proper version for your Sitecore instance.

Search for Sitecore.Kernel.NoReferences

e. In the Update Package tab of the TDS Project's properties check the Generate package during build checkbox. And leave the Sitecore Assembly Path blank. TDS will know to look for the assembly files in $(SolutionDir)/packages folder.