C# Class Bari.Plugins.VsCore.VisualStudio.ProjectSections.SourceItemsSectionBase

Base class for MSBuild project file section listing the source files of the project
Inheritance: MSBuildProjectSectionBase
Show file Open project: vigoo/bari

Public Methods

Method Description
Write ( XmlWriter writer, Project project, IMSBuildProjectGeneratorContext context ) : void

Writes the section using an XML writer

Protected Methods

Method Description
GetElementNameFor ( Project project, string file ) : string

Gets the element name for a given compilation item.

The default implementation always returns Compile

GetLogicalPath ( Project project, SuiteRelativePath file, SourceSetType sourceSetType ) : string
GetSourceSets ( Project project ) : IEnumerable

Gets the source sets to include

OrderSourceFiles ( Project project, IEnumerable files ) : IEnumerable

Orders the given set of source files if necessary

SourceItemsSectionBase ( Suite suite ) : System

Initializes the class

WriteAdditionalOptions ( XmlWriter writer, Project project, SuiteRelativePath suiteRelativePath ) : void

Provides the ability to add extra content to a given project source file

Private Methods

Method Description
GetOrderedFiles ( Project project ) : SourceSetType>>.IEnumerable

Method Details

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

GetLogicalPath() protected method

protected GetLogicalPath ( Project project, SuiteRelativePath file, SourceSetType sourceSetType ) : string
project Project
file SuiteRelativePath
sourceSetType SourceSetType
return string

GetSourceSets() protected abstract method

Gets the source sets to include
protected abstract GetSourceSets ( Project project ) : IEnumerable
project Project The project to get its source sets
return IEnumerable

OrderSourceFiles() protected method

Orders the given set of source files if necessary
protected OrderSourceFiles ( Project project, IEnumerable files ) : IEnumerable
project Project Project being processed
files IEnumerable Input sequence
return IEnumerable

SourceItemsSectionBase() protected method

Initializes the class
protected SourceItemsSectionBase ( Suite suite ) : System
suite Suite Active suite
return System

Write() public method

Writes the section using an XML writer
public Write ( XmlWriter writer, Project project, IMSBuildProjectGeneratorContext context ) : void
writer System.Xml.XmlWriter XML writer to use
project Project The project to generate .csproj for
context IMSBuildProjectGeneratorContext Current .csproj generation context
return void

WriteAdditionalOptions() protected method

Provides the ability to add extra content to a given project source file
protected WriteAdditionalOptions ( XmlWriter writer, Project project, SuiteRelativePath suiteRelativePath ) : void
writer System.Xml.XmlWriter The project file writer
project Project Project model
suiteRelativePath SuiteRelativePath Suite relative path of the source item
return void