March 20, 2017 | Kliment Klimentov
The TDS Classic NuGet Package gives the ability to build a TDS Classic Project on a build server without needing to actually install TDS Classic there. TDS Classic is pushed to the build server in the NuGet package. The build server restores the package and uses the files from the package to build the TDS Classic Projects in the solution, instead of the files from the installed version of TDS Classic. This makes installing TDS Classic on the build server unnecessary since its files are not needed. In the example we'll use Team City, but the process will be similar in other build servers.
In order to use the HedgehogDevelopment.TDS NuGet package on a build server, a license of TDS Classic needs to be applied. Since TDS Classic is not installed, the license info have to be stored in the Environment variables on the build server. If the license is not applied, the builds will fail with the following exception:
Exception Invalid License(Exception) in file sitecore\content.item. Stack trace:
at HedgehogDevelopment.SitecoreProject.Tasks.CollectSitecoreItems.Execute()
There need to be created 2 Environment variables -
"TDS_Key" with your TDS key as a value and
"TDS_Owner" with value your company name.
For more on the HedgehogDevelopment.TDS NuGet package, check out another in our TDS Classic How-To series, or download TDS Classic today!