public override void Generate() { ContextStartupExtenderTemplate template = new ContextStartupExtenderTemplate(_model); string fullFileName = RELATIVE_OUTPUT_LOCATION + template.FileName; ProjectItemGeneratedEventArgs eventArgs = new ProjectItemGeneratedEventArgs(fullFileName, template.FileContent, ProjectName, this, false); OnProjectItemGenerated(this, eventArgs); var gcEventArgs = new ProjectItemGenerationCompleteEventArgs(this); OnGenerationComplete(this, gcEventArgs); }