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

WriteAdditionalOptions() protected method

protected WriteAdditionalOptions ( XmlWriter writer, Project project, SuiteRelativePath suiteRelativePath ) : void
writer System.Xml.XmlWriter
project Project
suiteRelativePath SuiteRelativePath
return void
        protected override void WriteAdditionalOptions(XmlWriter writer, Project project, SuiteRelativePath suiteRelativePath)
        {
            base.WriteAdditionalOptions(writer, project, suiteRelativePath);

            var relativePath = ToProjectRelativePath(project, suiteRelativePath, "resources");

            if (relativePath.StartsWith("wpf" + Path.DirectorySeparatorChar))
                relativePath = GetLogicalPath(project, suiteRelativePath, "resources");
            else
                relativePath = Path.Combine("_Resources", relativePath);

            writer.WriteElementString("Link", relativePath);
        }