C# Class Scorchio.VisualStudio.Services.SolutionService

Defines the SolutionService type.
Inheritance: ISolutionService
Mostra file Open project: asudbury/NinjaCoderForMvvmCross

Public Methods

Method Description
AddItemTemplateToProjects ( IEnumerable templateInfos ) : IEnumerable

Adds the item template to project.

AddItemTemplateToProjects ( IEnumerable textTemplateInfos, bool outputTextTemplateContentToTraceFile ) : IEnumerable

Adds the item template to project.

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

Adds the project to solution.

AddProjectToSubFolder ( string solutionFolderName, string path, string templatePath, string projectName ) : void

Adds the project to sub folder.

AddSolutionFolder ( string solutionFolder ) : void

Adds the item.

AddSolutionItem ( string solutionFolder, string path ) : void

Adds the item.

CreateEmptySolution ( string solutionPath, string solutionName ) : void

Creates the empty solution.

CreateFile ( string file, string contents ) : void

Creates the file.

GetDirectoryName ( ) : string

Gets the directory name.

GetGlobalVariable ( string key ) : object

Gets the global variable.

GetGlobalVariables ( ) : string>.Dictionary

Gets the global variables.

GetParentDirectoryName ( ) : string

Gets the name of the parent directory.

GetProject ( string projectName ) : Entities.Project

Gets the projects.

GetProjectItemService ( string path ) : IProjectItemService

Gets the project item service.

GetProjectItemTemplate ( string templateName ) : string

Gets the item template.

GetProjectService ( string projectName ) : IProjectService

Gets the project service.

GetProjectTemplate ( string templateName ) : string

Gets the project template.

GetProjects ( ) : IEnumerable

Gets the projects.

GetSolutionItemPath ( string file ) : string

Gets the solution item path.

GetSolutionSubFolder ( string solutionFolderName ) : Entities.Project

Gets the solution sub folder.

GlobalVariableExists ( string key ) : bool

Globals the variable exists.

OpenFile ( string path ) : void

Opens the file.

RemoveComments ( ) : void

Removes the comments.

RemoveFileHeaders ( ) : void

Removes the comments.

RemoveFolder ( string folderName ) : void

Removes the folder.

RemoveGlobalVariables ( ) : void

Removes the global variables.

ReplaceText ( string text, string replacementText ) : void

Replaces the text.

ReplaceTextInCSharpFiles ( string text, string replacementText ) : void

Replaces the text in c sharp files.

SetGlobalVariable ( string key, object value ) : void

Sets the global variable.

SetStartUpProject ( string projectName ) : void

Sets the start up project.

SolutionService ( Solution solution ) : System

Initializes a new instance of the SolutionService class.

WriteFile ( string path, string contents ) : void

Writes the file.

Method Details

AddItemTemplateToProjects() public method

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

AddItemTemplateToProjects() public method

Adds the item template to project.
public AddItemTemplateToProjects ( IEnumerable textTemplateInfos, bool outputTextTemplateContentToTraceFile ) : IEnumerable
textTemplateInfos IEnumerable The text template infos.
outputTextTemplateContentToTraceFile bool if set to true [output text template content to trace file].
return IEnumerable

AddProjectToSolution() public method

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

AddProjectToSubFolder() public method

Adds the project to sub folder.
public AddProjectToSubFolder ( string solutionFolderName, string path, string templatePath, string projectName ) : void
solutionFolderName string Name of the solution folder.
path string The path.
templatePath string The template path.
projectName string Name of the project.
return void

AddSolutionFolder() public method

Adds the item.
public AddSolutionFolder ( string solutionFolder ) : void
solutionFolder string The solution folder.
return void

AddSolutionItem() public method

Adds the item.
public AddSolutionItem ( string solutionFolder, string path ) : void
solutionFolder string The solution folder.
path string The path.
return void

CreateEmptySolution() public method

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

CreateFile() public method

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

GetDirectoryName() public method

Gets the directory name.
public GetDirectoryName ( ) : string
return string

GetGlobalVariable() public method

Gets the global variable.
public GetGlobalVariable ( string key ) : object
key string The key.
return object

GetGlobalVariables() public method

Gets the global variables.
public GetGlobalVariables ( ) : string>.Dictionary
return string>.Dictionary

GetParentDirectoryName() public method

Gets the name of the parent directory.
public GetParentDirectoryName ( ) : string
return string

GetProject() public method

Gets the projects.
public GetProject ( string projectName ) : Entities.Project
projectName string Name of the project.
return Entities.Project

GetProjectItemService() public method

Gets the project item service.
public GetProjectItemService ( string path ) : IProjectItemService
path string The path.
return IProjectItemService

GetProjectItemTemplate() public method

Gets the item template.
public GetProjectItemTemplate ( string templateName ) : string
templateName string ProjectName of the template.
return string

GetProjectService() public method

Gets the project service.
public GetProjectService ( string projectName ) : IProjectService
projectName string Name of the project.
return IProjectService

GetProjectTemplate() public method

Gets the project template.
public GetProjectTemplate ( string templateName ) : string
templateName string ProjectName of the template.
return string

GetProjects() public method

Gets the projects.
public GetProjects ( ) : IEnumerable
return IEnumerable

GetSolutionItemPath() public method

Gets the solution item path.
public GetSolutionItemPath ( string file ) : string
file string The file.
return string

GetSolutionSubFolder() public method

Gets the solution sub folder.
public GetSolutionSubFolder ( string solutionFolderName ) : Entities.Project
solutionFolderName string Name of the solution folder.
return Entities.Project

GlobalVariableExists() public method

Globals the variable exists.
public GlobalVariableExists ( string key ) : bool
key string The key.
return bool

OpenFile() public method

Opens the file.
public OpenFile ( string path ) : void
path string The path.
return void

RemoveComments() public method

Removes the comments.
public RemoveComments ( ) : void
return void

RemoveFileHeaders() public method

Removes the comments.
public RemoveFileHeaders ( ) : void
return void

RemoveFolder() public method

Removes the folder.
public RemoveFolder ( string folderName ) : void
folderName string Name of the folder.
return void

RemoveGlobalVariables() public method

Removes the global variables.
public RemoveGlobalVariables ( ) : void
return void

ReplaceText() public method

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

ReplaceTextInCSharpFiles() public method

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

SetGlobalVariable() public method

Sets the global variable.
public SetGlobalVariable ( string key, object value ) : void
key string The key.
value object The value.
return void

SetStartUpProject() public method

Sets the start up project.
public SetStartUpProject ( string projectName ) : void
projectName string Name of the project.
return void

SolutionService() public method

Initializes a new instance of the SolutionService class.
public SolutionService ( Solution solution ) : System
solution Solution The solution.
return System

WriteFile() public method

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