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

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

Méthodes publiques

Méthode Description
Write ( XmlWriter writer, Project project, IMSBuildProjectGeneratorContext context ) : void

Writes the section using an XML writer

Méthodes protégées

Méthode 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

Méthode Description
GetOrderedFiles ( Project project ) : SourceSetType>>.IEnumerable

Method Details

GetElementNameFor() protected méthode

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
Résultat string

GetLogicalPath() protected méthode

protected GetLogicalPath ( Project project, SuiteRelativePath file, SourceSetType sourceSetType ) : string
project Project
file SuiteRelativePath
sourceSetType SourceSetType
Résultat string

GetSourceSets() protected abstract méthode

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

OrderSourceFiles() protected méthode

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
Résultat IEnumerable

SourceItemsSectionBase() protected méthode

Initializes the class
protected SourceItemsSectionBase ( Suite suite ) : System
suite Suite Active suite
Résultat System

Write() public méthode

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
Résultat void

WriteAdditionalOptions() protected méthode

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
Résultat void