TDS Error with Helix Solution: Serialization .Item Locked

Was recently working on a Helix Solution that leveraged TDS instead of Unicorn and getting frustrated by errors with the Gulp Build Script like the below:

TDSError error TDS0005: Deploy of /sitecore/templates failed. Reason: The process cannot access the file 'C:\Websites\xxxsitenamexxx\Data\serialization\master\sitecore\templates.item' because it is being used by another process.

Emailed Hedgehog support who were very helpful. Apparently there is a flag in the Habitat Gulp Script sample that runs parallel builds. To disable this behavior, update all instances of maxcpucount: from 0 to 1.

maxcpucount: 1,

Between that change and increasing the default timeouts in the TDS config*, should be enough to get gulp builds working smoothly.

*Increase send timeout in C:\Program Files (x86)\MSBuild\HedgehogDevelopment\SitecoreProject\v9.0\HedgehogDevelopment.SitecoreProject.Tasks.dll.config


Sitecore Foundation - Layout Components

Sitecore Foundation - Site Collections, Sites, Shared Content and Information Architecture