Packaging with TDS and Sitecore 8 Update 3

This will be a really quick one. If you are using TDS and Sitecore 8 Update 3 that just came out yesterday you may see the following when building an .update package:

Building .Sandbox-Package..Package_Sandbox-PackageScore.TDS.Core.update
Inner Exception Object reference not set to an instance of an object.(System.NullReferenceException):
   at Sitecore.Update.Utils.ConfigurationUtils.GetConfiguration(ConfigReader reader)
   at Sitecore.Update.Utils.ConfigurationUtils.GetConfigNodes(String xpath, ConfigReader reader)
   at Sitecore.Update.Configuration.Factory.ReloadSettings()
   at Sitecore.Update.Commands.BaseFileCommand.Serialize(XmlWriter writer, SerializationContext context)
   at Sitecore.Update.Commands.SerializationCommandFactory.SerializeCommand(ICommand command, XmlWriter writer, SerializationContext context)
   at Sitecore.Update.Installer.CommandToEntryConverter.ConvertFileOperationCommand(BaseFileCommand entry, Stream file)
   at Sitecore.Update.Installer.CommandToEntryConverter.Convert(ICommand entry)
   at Sitecore.Update.Installer.CommandToEntryConverter.InternalConvert(ICommand entry, IProcessingContext context)
   at Sitecore.Install.Framework.BaseConverter`1.Convert(T entry, IProcessingContext context)
   at Sitecore.Install.Framework.BaseSource`1.InternalSink.Put(T entry)
   at Sitecore.Install.Framework.FilteringSink`1.Put(T entry)
   at Sitecore.Update.Installer.CommandSource.InternalPopulate(ISink`1 sink)
   at Sitecore.Install.Framework.BaseSource`1.Populate(ISink`1 sink)
   at Sitecore.Install.PackageProject.InternalPopulate(ISink`1 sink)
   at Sitecore.Install.Framework.BaseSource`1.Populate(ISink`1 sink)
   at Sitecore.Install.Utils.EntrySorter.Populate(ISink`1 sink)
   at Sitecore.Install.PackageGenerator.GeneratePackage(PackageProject solution, ISink`1 writer)
   at Sitecore.Update.Engine.PackageGenerator.GeneratePackage(DiffInfo diff, String licenseFile, String outputPath)
Exception Cannot generate package: Object reference not set to an instance of an object.(System.Exception):
   at Sitecore.Update.Engine.PackageGenerator.GeneratePackage(DiffInfo diff, String licenseFile, String outputPath)
   at HedgehogDevelopment.SitecoreProject.PackageBuilder.PackageBuilder.P(P ?)
   at HedgehogDevelopment.SitecoreProject.PackageBuilder.u.P(String[] ?)

Workaround

Use Sitecore.Update.dll from Update 2 as a quick workaround.

Solution

Charlie Turano from Hedgehog TDS Support Team sent me the updated HedgehogDevelopment.SitecoreProject.PackageBuilder.exe.config with the following change:

diff

Happy packaging!

Pavel Veller

4 comments on Packaging with TDS and Sitecore 8 Update 3

AjaxerMay 14, 2015 - Reply

Thanks so much for this, saved my sanity. Perfect fix.

Jason St-CyrJune 3, 2015 - Reply

Thanks for this post! It definitely helped. It seems an official update is now available with this fix. Version 5.1.0.9 of TDS, released May 21, 2015, seems to fix this issue for me. I just wanted to let others know…

ajaxerJune 7, 2015 - Reply

And just in to make it easier, the configuration file in question can be found at C:Program Files (x86)MSBuildHedgehogDevelopmentSitecoreProjectv9.0

Emma GarlandJune 17, 2015 - Reply

This fixed it for me! A day of wondering why my co-worker’s solution built packages fine but not mine – and it was because I installed TDS a few months back on 5.1.0.8!

Add a Comment

Your email address will not be published. Required fields are marked *

Or request call back