Linq to SQL Designer: Buyer Beware

I have been running into this odd error off and on for the past week with the code generated by the Linq to SQL designer. I kept on getting Error 1 Build failed due to validation errors in C:\xxx\DB.dbml…. when I tried to build. Thanks to google (a developers best friend) I ran into a blog entry by Rick Strahl that talked about resetting Visual Studio Packages. Well it turns out this is solves my issue but I had to follow these steps to get it to work.

  1. run devenv /ResetSkipPkgs
  2. clean the solution
  3. recompile

I really hope they fix this with SP2 or in VS 10.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>