title: Trigger code-generation in a VS project template
body: <p>I created a project template that has a SQL database and a Linq2SQL dbml file. A project created using this template will not compile due to apparent missing code, but if you right-click on the dbml file and invoke <code>Run Custom Tool</code> the missing code is generated and thereafter compilation succeeds. </p>
  
  <p>What do I need to do to my project template so that it triggers code-generation? I'm aware of the IWizard extension system for project templates, but I have no idea how to programmatically cause the IDE to perform code generation.</p>
  
  <p>So the question is: <em>How, in a Wizard implementation for use in a project template, do you trigger IDE code generation?</em></p>