Thursday, 28 August 2008

LINQ-To-SQL auto-generate failure. "The custom tool 'MSLinqToSQLGenerator' failed. Unspecified error." Visual Studio 2008 SP1 bug. SourceSafe may delete your designer.cs file!

If you have a partial class associated with a LINQ DataContext DBML's designer.cs file, then after Visual Studio 2008 SP1 is applied, the designer file may not be created properly IF you have a using statement declared outside of the namespace.

The simple solution is to move the using statements inside the namespace construct.

A bug has been posted to Microsoft.  I'm just glad it's a simple solution.

thanks, k