Xap packaging failed. Object reference not set to an instance of an object
You should check, in every folder of your project, for missing files or wrong references. You can get this problem just with a single missing image, if its Build Action property is set to Content or similar… Check your files and then Rebuild your project!