Bari.Plugins.Csharp.VisualStudio.CsprojSections.EmbeddedResourcesSection.GetElementNameFor C# (CSharp) Method

GetElementNameFor() protected method

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
return string
        protected override string GetElementNameFor(Project project, string file)
        {
            var relativePath = ToProjectRelativePath(project, file, "resources");

            if (relativePath.StartsWith("wpf" + Path.DirectorySeparatorChar))
                return "Resource";
            else
                return "EmbeddedResource";
        }