title: T4 Template Refresh On Save
body: <p>I have a couple of custom T4 templates that I want to regenerate any time my edmx file (in the same project) changes. </p>
  
  <p>Somehow Entity Framework manages to figure out to refresh the POCO T4 template on save.....but I can't figure out how. At first I thought it had to do with the <code>&lt;DependentUpon&gt;</code> tag in the csproj...but that doesn't seem to have any effect except for telling Visual Studio to group one file under another.</p>
  
  <p>How can I get my custom T4 templates to regenerate when my edmx changes, like Entity Framework's POCO tempaltes do?</p>