I kept getting this error “The custom tool ‘MSLinqToSQLGenerator’ failed. Unspecified error. For me, this was caused when I was using partial classes and had several using statements at the top of the file:
using System.Data.Linq;
using System.Data.Linq.Mapping;
using System.Data;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
using System.Linq.Expressions;
using System.ComponentModel;
using System;
{namespace}
{code}
To get around this, I removed the using namespaces and ran the custom build tool, then readded the using statements which resolved my issue. This issue apparently is in SP1 VS2008!
References: