C# Класс Scorchio.VisualStudio.Services.SolutionService

Defines the SolutionService type.
Наследование: ISolutionService
Показать файл Открыть проект

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

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

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

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

Adds the item template to project.
public AddItemTemplateToProjects ( IEnumerable templateInfos ) : IEnumerable
templateInfos IEnumerable The template infos.
Результат IEnumerable

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

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

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

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

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

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

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

Adds the item.
public AddSolutionFolder ( string solutionFolder ) : void
solutionFolder string The solution folder.
Результат void

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

Adds the item.
public AddSolutionItem ( string solutionFolder, string path ) : void
solutionFolder string The solution folder.
path string The path.
Результат void

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

Creates the empty solution.
public CreateEmptySolution ( string solutionPath, string solutionName ) : void
solutionPath string The solution path.
solutionName string Name of the solution.
Результат void

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

Creates the file.
public CreateFile ( string file, string contents ) : void
file string The file.
contents string The contents.
Результат void

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

Gets the directory name.
public GetDirectoryName ( ) : string
Результат string

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

Gets the global variable.
public GetGlobalVariable ( string key ) : object
key string The key.
Результат object

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

Gets the global variables.
public GetGlobalVariables ( ) : string>.Dictionary
Результат string>.Dictionary

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

Gets the name of the parent directory.
public GetParentDirectoryName ( ) : string
Результат string

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

Gets the projects.
public GetProject ( string projectName ) : Entities.Project
projectName string Name of the project.
Результат Entities.Project

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

Gets the project item service.
public GetProjectItemService ( string path ) : IProjectItemService
path string The path.
Результат IProjectItemService

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

Gets the item template.
public GetProjectItemTemplate ( string templateName ) : string
templateName string ProjectName of the template.
Результат string

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

Gets the project service.
public GetProjectService ( string projectName ) : IProjectService
projectName string Name of the project.
Результат IProjectService

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

Gets the project template.
public GetProjectTemplate ( string templateName ) : string
templateName string ProjectName of the template.
Результат string

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

Gets the projects.
public GetProjects ( ) : IEnumerable
Результат IEnumerable

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

Gets the solution item path.
public GetSolutionItemPath ( string file ) : string
file string The file.
Результат string

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

Gets the solution sub folder.
public GetSolutionSubFolder ( string solutionFolderName ) : Entities.Project
solutionFolderName string Name of the solution folder.
Результат Entities.Project

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

Globals the variable exists.
public GlobalVariableExists ( string key ) : bool
key string The key.
Результат bool

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

Opens the file.
public OpenFile ( string path ) : void
path string The path.
Результат void

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

Removes the comments.
public RemoveComments ( ) : void
Результат void

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

Removes the comments.
public RemoveFileHeaders ( ) : void
Результат void

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

Removes the folder.
public RemoveFolder ( string folderName ) : void
folderName string Name of the folder.
Результат void

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

Removes the global variables.
public RemoveGlobalVariables ( ) : void
Результат void

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

Replaces the text.
public ReplaceText ( string text, string replacementText ) : void
text string The text.
replacementText string The replacement text.
Результат void

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

Replaces the text in c sharp files.
public ReplaceTextInCSharpFiles ( string text, string replacementText ) : void
text string The text.
replacementText string The replacement text.
Результат void

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

Sets the global variable.
public SetGlobalVariable ( string key, object value ) : void
key string The key.
value object The value.
Результат void

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

Sets the start up project.
public SetStartUpProject ( string projectName ) : void
projectName string Name of the project.
Результат void

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

Initializes a new instance of the SolutionService class.
public SolutionService ( Solution solution ) : System
solution Solution The solution.
Результат System

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

Writes the file.
public WriteFile ( string path, string contents ) : void
path string The path.
contents string The contents.
Результат void