public override void Generate()
 {
     ContextExtensionsGeneratedTemplate template = new ContextExtensionsGeneratedTemplate(_model);
     string fullParentName = RELATIVE_OUTPUT_LOCATION + template.ParentItemName;
     ProjectItemGeneratedEventArgs eventArgs = new ProjectItemGeneratedEventArgs(template.FileName, template.FileContent, ProjectName, fullParentName, this, true);
     OnProjectItemGenerated(this, eventArgs);
     var gcEventArgs = new ProjectItemGenerationCompleteEventArgs(this);
     OnGenerationComplete(this, gcEventArgs);
 }
Ejemplo n.º 2
0
        public override void Generate()
        {
            ContextExtensionsGeneratedTemplate template = new ContextExtensionsGeneratedTemplate(_model);
            string fullParentName = RELATIVE_OUTPUT_LOCATION + template.ParentItemName;
            ProjectItemGeneratedEventArgs eventArgs = new ProjectItemGeneratedEventArgs(template.FileName, template.FileContent, ProjectName, fullParentName, this, true);

            OnProjectItemGenerated(this, eventArgs);
            var gcEventArgs = new ProjectItemGenerationCompleteEventArgs(this);

            OnGenerationComplete(this, gcEventArgs);
        }