Пример #1
0
        public override void ModifyTags(
            Projects.SolutionItem policyParent,
            Projects.Project project,
            string language,
            string identifier,
            string fileName,
            ref Dictionary <string, string> tags)
        {
            base.ModifyTags(policyParent, project, language, identifier, fileName, ref tags);

            if (tags != null)
            {
                tags["ModuleName"] = DModule.GetModuleName(project == null ? string.Empty : project.BaseDirectory.ToString(), fileName ?? identifier ?? string.Empty).Replace(' ', '_');
            }
        }
Пример #2
0
        public override void ModifyTags(
            Projects.SolutionItem policyParent,
            Projects.Project project,
            string language,
            string identifier,
            string fileName,
            ref Dictionary <string, string> tags)
        {
            base.ModifyTags(policyParent, project, language, identifier, fileName, ref tags);

            tags["ModuleName"] =
                Path.ChangeExtension(new FilePath(fileName ?? identifier)
                                     .ToRelative(project.BaseDirectory), null)
                .Replace(Path.DirectorySeparatorChar, '.')
                .Replace(' ', '_');
        }