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:
1 | Building .Sandbox-Package..Package_Sandbox-PackageScore.TDS.Core.update |
2 | Inner Exception Object reference not set to an instance of an object.(System.NullReferenceException): |
3 | at Sitecore.Update.Utils.ConfigurationUtils.GetConfiguration(ConfigReader reader) |
4 | at Sitecore.Update.Utils.ConfigurationUtils.GetConfigNodes(String xpath, ConfigReader reader) |
5 | at Sitecore.Update.Configuration.Factory.ReloadSettings() |
6 | at Sitecore.Update.Commands.BaseFileCommand.Serialize(XmlWriter writer, SerializationContext context) |
7 | at Sitecore.Update.Commands.SerializationCommandFactory.SerializeCommand(ICommand command, XmlWriter writer, SerializationContext context) |
8 | at Sitecore.Update.Installer.CommandToEntryConverter.ConvertFileOperationCommand(BaseFileCommand entry, Stream file) |
9 | at Sitecore.Update.Installer.CommandToEntryConverter.Convert(ICommand entry) |
10 | at Sitecore.Update.Installer.CommandToEntryConverter.InternalConvert(ICommand entry, IProcessingContext context) |
11 | at Sitecore.Install.Framework.BaseConverter`1.Convert(T entry, IProcessingContext context) |
12 | at Sitecore.Install.Framework.BaseSource`1.InternalSink.Put(T entry) |
13 | at Sitecore.Install.Framework.FilteringSink`1.Put(T entry) |
14 | at Sitecore.Update.Installer.CommandSource.InternalPopulate(ISink`1 sink) |
15 | at Sitecore.Install.Framework.BaseSource`1.Populate(ISink`1 sink) |
16 | at Sitecore.Install.PackageProject.InternalPopulate(ISink`1 sink) |
17 | at Sitecore.Install.Framework.BaseSource`1.Populate(ISink`1 sink) |
18 | at Sitecore.Install.Utils.EntrySorter.Populate(ISink`1 sink) |
19 | at Sitecore.Install.PackageGenerator.GeneratePackage(PackageProject solution, ISink`1 writer) |
20 | at Sitecore.Update.Engine.PackageGenerator.GeneratePackage(DiffInfo diff, String licenseFile, String outputPath) |
21 | Exception Cannot generate package: Object reference not set to an instance of an object.(System.Exception): |
22 | at Sitecore.Update.Engine.PackageGenerator.GeneratePackage(DiffInfo diff, String licenseFile, String outputPath) |
23 | at HedgehogDevelopment.SitecoreProject.PackageBuilder.PackageBuilder.P(P ?) |
24 | 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:

Happy packaging!
Thanks so much for this, saved my sanity. Perfect fix.
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…
And just in to make it easier, the configuration file in question can be found at C:Program Files (x86)MSBuildHedgehogDevelopmentSitecoreProjectv9.0
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!