Surendra Sharma

Surendra Sharma

Search This Blog

Monday, July 13, 2015

The "GeneratePackage" task failed unexpectedly error



If you are trying to set TDS for your Sitecore ASP.NET project and you are getting error The "GeneratePackage" task failed unexpectedly. then its indication that you have not installed TDS correctly.

The detail error is

The "GeneratePackage" task failed unexpectedly.
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at HedgehogDevelopment.SitecoreProject.Tasks.GeneratePackage.Execute()
   at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult)          C:\Program Files (x86)\MSBuild\HedgehogDevelopment\SitecoreProject\v9.0\HedgehogDevelopment.SitecoreProject.targets 106                6

How to fix it?

Solution:

Open “C:\Program Files (x86)\MSBuild\HedgehogDevelopment\SitecoreProject\v9.0” folder and check it must contain below files



If any files are missing then copy all missing files from another colleague or friend computer where TDS is working and paste into your system on the same mentioned folder.

That’s it. Your TDS package will start to work now :)

Please leave your comments or share this trick if it’s useful for you.

2 comments:

  1. Thanks for passing this Info, it helps lot of people who have similar issues.

    ReplyDelete
  2. Thanks Mate!! i installed one of the latest tds package and after that was getting this error. After looking at the files "C:\Program Files (x86)\MSBuild\HedgehogDevelopment\SitecoreProject\v9.0" i noticed the exe file was mising. Not sure why. Copied it from TDS nuget package and added there and all good afterwards. Thanks again!!

    ReplyDelete