C# Класс Bari.Plugins.VsCore.VisualStudio.ProjectSections.SourceItemsSectionBase

Base class for MSBuild project file section listing the source files of the project
Наследование: MSBuildProjectSectionBase
Показать файл Открыть проект

Открытые методы

Метод Описание
Write ( XmlWriter writer, Project project, IMSBuildProjectGeneratorContext context ) : void

Writes the section using an XML writer

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
GetOrderedFiles ( Project project ) : SourceSetType>>.IEnumerable

Описание методов

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

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

protected GetLogicalPath ( Project project, SuiteRelativePath file, SourceSetType sourceSetType ) : string
project Project
file SuiteRelativePath
sourceSetType SourceSetType
Результат string

GetSourceSets() защищенный абстрактный Метод

Gets the source sets to include
protected abstract GetSourceSets ( Project project ) : IEnumerable
project Project The project to get its source sets
Результат IEnumerable

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

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
Результат IEnumerable

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

Initializes the class
protected SourceItemsSectionBase ( Suite suite ) : System
suite Suite Active suite
Результат System

Write() публичный Метод

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
Результат void

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

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
Результат void