C# Class Scorchio.VisualStudio.Extensions.SolutionExtensions

Defines the SolutionExtensions type.
Mostrar archivo Open project: asudbury/NinjaCoderForMvvmCross

Public Methods

Method Description
AddItemTemplateToProjects ( this instance, IEnumerable templateInfos ) : IEnumerable

Adds the item template to project.

AddProjectToSolution ( this instance, string path, string templatePath, string projectName ) : void

Adds the project to solution.

AddSolutionItem ( this instance, string solutionFolder, string path ) : ProjectItem

Adds the item.

AddTextTemplateToProjects ( this instance, IEnumerable textTemplateInfos, bool outputTextTemplateContentToTraceFile ) : IEnumerable

Adds the text template to projects.

CreateEmptySolution ( this instance, string solutionPath, string solutionName ) : void

Creates the empty solution.

CreateFile ( this instance, string file, string contents ) : void

Creates the file.

GetDirectoryName ( this instance ) : string

Gets the directory name.

GetProject ( this instance, string projectName ) : EnvDTE.Project

Gets the projects.

GetProjectItemTemplate ( this instance, string templateName ) : string

Gets the item template.

GetProjectTemplate ( this instance, string templateName ) : string

Gets the project template.

GetProjects ( this instance ) : IEnumerable

Gets the projects.

GetSolutionItemPath ( this instance, string file ) : string

Gets the solution item path.

RemoveComments ( this instance ) : void

Removes the comments.

RemoveFileHeaders ( this instance ) : void

Removes the comments.

RemoveFolder ( this instance, string folderName ) : void

Removes the folder.

ReplaceText ( this instance, string text, string replacementText ) : void

Replaces the text.

ReplaceTextInCSharpFiles ( this instance, string text, string replacementText ) : void

Replaces the text in c sharp files.

SetStartUpProject ( this instance, string projectName ) : void

Sets the start up project.

WriteFile ( this instance, string path, string contents ) : void

Writes the file.

Method Details

AddItemTemplateToProjects() public static method

Adds the item template to project.
public static AddItemTemplateToProjects ( this instance, IEnumerable templateInfos ) : IEnumerable
instance this The instance.
templateInfos IEnumerable The template infos.
return IEnumerable

AddProjectToSolution() public static method

Adds the project to solution.
public static AddProjectToSolution ( this instance, string path, string templatePath, string projectName ) : void
instance this The instance.
path string The path.
templatePath string The template path.
projectName string ProjectName of the project.
return void

AddSolutionItem() public static method

Adds the item.
public static AddSolutionItem ( this instance, string solutionFolder, string path ) : ProjectItem
instance this The instance.
solutionFolder string The solution folder.
path string The path.
return ProjectItem

AddTextTemplateToProjects() public static method

Adds the text template to projects.
public static AddTextTemplateToProjects ( this instance, IEnumerable textTemplateInfos, bool outputTextTemplateContentToTraceFile ) : IEnumerable
instance this The instance.
textTemplateInfos IEnumerable The text template infos.
outputTextTemplateContentToTraceFile bool if set to true [output text template content to trace file].
return IEnumerable

CreateEmptySolution() public static method

Creates the empty solution.
public static CreateEmptySolution ( this instance, string solutionPath, string solutionName ) : void
instance this The instance.
solutionPath string The solution path.
solutionName string Name of the solution.
return void

CreateFile() public static method

Creates the file.
public static CreateFile ( this instance, string file, string contents ) : void
instance this The instance.
file string The file.
contents string The contents.
return void

GetDirectoryName() public static method

Gets the directory name.
public static GetDirectoryName ( this instance ) : string
instance this The instance.
return string

GetProject() public static method

Gets the projects.
public static GetProject ( this instance, string projectName ) : EnvDTE.Project
instance this The instance.
projectName string Name of the project.
return EnvDTE.Project

GetProjectItemTemplate() public static method

Gets the item template.
public static GetProjectItemTemplate ( this instance, string templateName ) : string
instance this The instance.
templateName string ProjectName of the template.
return string

GetProjectTemplate() public static method

Gets the project template.
public static GetProjectTemplate ( this instance, string templateName ) : string
instance this The instance.
templateName string ProjectName of the template.
return string

GetProjects() public static method

Gets the projects.
public static GetProjects ( this instance ) : IEnumerable
instance this The instance.
return IEnumerable

GetSolutionItemPath() public static method

Gets the solution item path.
public static GetSolutionItemPath ( this instance, string file ) : string
instance this The instance.
file string The file.
return string

RemoveComments() public static method

Removes the comments.
public static RemoveComments ( this instance ) : void
instance this The instance.
return void

RemoveFileHeaders() public static method

Removes the comments.
public static RemoveFileHeaders ( this instance ) : void
instance this The instance.
return void

RemoveFolder() public static method

Removes the folder.
public static RemoveFolder ( this instance, string folderName ) : void
instance this The instance.
folderName string Name of the folder.
return void

ReplaceText() public static method

Replaces the text.
public static ReplaceText ( this instance, string text, string replacementText ) : void
instance this The instance.
text string The text.
replacementText string The replacement text.
return void

ReplaceTextInCSharpFiles() public static method

Replaces the text in c sharp files.
public static ReplaceTextInCSharpFiles ( this instance, string text, string replacementText ) : void
instance this The instance.
text string The text.
replacementText string The replacement text.
return void

SetStartUpProject() public static method

Sets the start up project.
public static SetStartUpProject ( this instance, string projectName ) : void
instance this The instance.
projectName string Name of the project.
return void

WriteFile() public static method

Writes the file.
public static WriteFile ( this instance, string path, string contents ) : void
instance this The instance.
path string The path.
contents string The contents.
return void