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

Base class for IMSBuildProjectSection implementations
Inheritance: IMSBuildProjectSection
Mostrar archivo 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
GetOutputPath ( IFileSystemDirectory targetDir, Project project ) : string
MSBuildProjectSectionBase ( Suite suite ) : System.IO

Initializes the .csproj section writer

ToProjectRelativePath ( Project project, string suiteRelativePath, SourceSetType sourceSetName ) : string

Converts a suite relative path to project relative

Method Details

GetOutputPath() protected method

protected GetOutputPath ( IFileSystemDirectory targetDir, Project project ) : string
targetDir IFileSystemDirectory
project Project
return string

MSBuildProjectSectionBase() protected method

Initializes the .csproj section writer
protected MSBuildProjectSectionBase ( Suite suite ) : System.IO
suite Suite Active suite
return System.IO

ToProjectRelativePath() protected method

Converts a suite relative path to project relative
protected ToProjectRelativePath ( Project project, string suiteRelativePath, SourceSetType sourceSetName ) : string
project Project Project to be relative to
suiteRelativePath string Suite relative path
sourceSetName SourceSetType Source set name where the project being built stores its files
return string

Write() public abstract method

Writes the section using an XML writer
public abstract 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