Skip to main content

Devops

Packaging with TDS and Sitecore 8 Update 3

Abstract Windows@1x.jpg

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!

Thoughts on “Packaging with TDS and Sitecore 8 Update 3”

  1. 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…

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

  3. 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!

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Brian Beckham

As a Sitecore MVP, Brian spends most of his time consulting and architecting software solutions for enterprise-level Sitecore projects.

More from this Author

Categories
Follow Us
TwitterLinkedinFacebookYoutubeInstagram