public static CombinedTagModel GetTagModel(IStringTagModel projectTagModel, SolutionFolderItem policyParent, Project project, string language, string identifier, string fileName) { var model = new CombinedTagModel { BaseModel = projectTagModel }; FileTemplateTagsModifier.ModifyTags(policyParent, project, language, identifier, fileName, ref model.OverrideTags); return(model); }
// Can add tags for substitution based on project, language or filename. // If overriding but still want base implementation's tags, should invoke base method. // We supply defaults whenever it is possible, to avoid having unsubstituted tags. However, // do not substitute blanks when a sensible default cannot be guessed, because they result //in less obvious errors. public virtual void ModifyTags(SolutionFolderItem policyParent, Project project, string language, string identifier, string fileName, ref Dictionary <string, string> tags) { FileTemplateTagsModifier.ModifyTags(policyParent, project, language, identifier, fileName, ref tags); }