Bari.Plugins.VCpp.VisualStudio.VcxprojSections.SourceItemsSection.GetElementNameFor C# (CSharp) Метод

GetElementNameFor() защищенный Метод

Gets the element name for a given compilation item.

The default implementation always returns Compile

protected GetElementNameFor ( Project project, string file ) : string
project Project
file string File name from the source set
Результат string
        protected override string GetElementNameFor(Project project, string file)
        {
            var ext = Path.GetExtension(file).ToLowerInvariant();
            if (ext == ".h" || ext == ".hpp" || ext == ".h++")
                return "CLInclude";
            else if (ext == ".rc")
                return "ResourceCompile";
            else
                return "CLCompile";
        }