Sign up ×

When using SPMetal to generate entity classes, these classes are used in LINQ to SharePoint queries.

We have a project with content type and list definitions and one project with business logic which use the generated entity classes. But in an automated build approch what is the best way to make sure that we always have updated entity classes after a change in a content type and list instance?

I am thinking of making a "Post-build event" command in the Content Type and List definition project.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Use a pre-build event (not post-build!) as described in:

share|improve this answer

Your Answer


