C# Класс Scorchio.VisualStudio.Extensions.ProjectExtensions

Defines the ProjectExtensions type.
Показать файл Открыть проект

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

Метод Описание
AddAssemblies ( this instance, string assembliesPath, IEnumerable assemblies ) : void

Adds the assemblies.

AddItemToFolderFromTemplate ( this instance, string templateName, string fileName ) : bool

Adds the item to folder from template.

AddProjectReference ( this instance, Project referencedProject ) : System.Reference

Adds the project reference.

AddProjectToFolderFromTemplate ( this instance, string templateName, string path, string fileName ) : bool

Adds the project to folder from template.

AddReference ( this instance, string path ) : System.Reference

Adds the reference.

AddReference ( this instance, string destinationFolder, string destination, string source ) : System.Reference

Adds the reference.

AddTextTemplate ( this instance, string projectFolder, string fileName, string textOutput, bool outputTextTemplateContentToTraceFile ) : string

Adds the text template.

AddToFolderFromFile ( this instance, string folderName, string fileName ) : ProjectItem

Adds to folder from file.

GetCSharpProjectItems ( this instance ) : IEnumerable

Gets the c# project items.

GetFolder ( this instance, string folderName ) : ProjectItem

Gets the folder.

GetFolderItems ( this instance, string folderName, bool withFileExtensions ) : IEnumerable

Gets the folder items.

GetFolderOrCreate ( this instance, string folderName ) : ProjectItem

Gets the folder or create.

GetFolderProjectItems ( this instance ) : IEnumerable

Gets the folder project items.

GetProjectItem ( this instance, string fileName ) : ProjectItem

Gets the project item.

GetProjectItems ( this instance ) : IEnumerable

Gets the project items.

GetProjectPath ( this instance ) : string

Gets the project path.

GetProjectReferences ( this instance ) : IEnumerable

Gets the project references.

GetReferencePath ( this instance, string referenceName ) : string

Gets the reference path.

GetSolutionFolderProjects ( this instance ) : IEnumerable

Gets the solution folder projects.

GetSubFolders ( this instance, string folderName ) : IEnumerable

Gets the sub folders.

GetSubProjects ( this instance ) : IEnumerable

Gets the sub projects.

HasNugetPackages ( this instance ) : bool

Determines whether [has nuget packages] [the specified instance].

RemoveComments ( this instance ) : void

Removes the comments.

RemoveFileHeaders ( this instance ) : void

Removes the file headers.

RemoveFolder ( this instance, string folderName ) : ProjectItem

Removes the folder.

RemoveReference ( this instance, string referenceName ) : void

Removes the reference.

RemoveReferences ( this instance, string value ) : void

Removes the reference.

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

Replaces the text.

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

Replaces the text.

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

AddAssemblies() публичный статический Метод

Adds the assemblies.
public static AddAssemblies ( this instance, string assembliesPath, IEnumerable assemblies ) : void
instance this The instance.
assembliesPath string The assemblies path.
assemblies IEnumerable The assemblies.
Результат void

AddItemToFolderFromTemplate() публичный статический Метод

Adds the item to folder from template.
public static AddItemToFolderFromTemplate ( this instance, string templateName, string fileName ) : bool
instance this The instance.
templateName string Name of the template.
fileName string Name of the file.
Результат bool

AddProjectReference() публичный статический Метод

Adds the project reference.
public static AddProjectReference ( this instance, Project referencedProject ) : System.Reference
instance this The instance.
referencedProject Project The referenced project.
Результат System.Reference

AddProjectToFolderFromTemplate() публичный статический Метод

Adds the project to folder from template.
public static AddProjectToFolderFromTemplate ( this instance, string templateName, string path, string fileName ) : bool
instance this The instance.
templateName string Name of the template.
path string The path.
fileName string Name of the file.
Результат bool

AddReference() публичный статический Метод

Adds the reference.
public static AddReference ( this instance, string path ) : System.Reference
instance this The instance.
path string The path.
Результат System.Reference

AddReference() публичный статический Метод

Adds the reference.
public static AddReference ( this instance, string destinationFolder, string destination, string source ) : System.Reference
instance this The instance.
destinationFolder string The destination folder.
destination string The destination.
source string The source.
Результат System.Reference

AddTextTemplate() публичный статический Метод

Adds the text template.
public static AddTextTemplate ( this instance, string projectFolder, string fileName, string textOutput, bool outputTextTemplateContentToTraceFile ) : string
instance this The instance.
projectFolder string The project folder.
fileName string Name of the file.
textOutput string The text output.
outputTextTemplateContentToTraceFile bool if set to true [output text template content to trace file].
Результат string

AddToFolderFromFile() публичный статический Метод

Adds to folder from file.
public static AddToFolderFromFile ( this instance, string folderName, string fileName ) : ProjectItem
instance this The instance.
folderName string Name of the folder.
fileName string Name of the file.
Результат ProjectItem

GetCSharpProjectItems() публичный статический Метод

Gets the c# project items.
public static GetCSharpProjectItems ( this instance ) : IEnumerable
instance this The instance.
Результат IEnumerable

GetFolder() публичный статический Метод

Gets the folder.
public static GetFolder ( this instance, string folderName ) : ProjectItem
instance this The instance.
folderName string Name of the folder.
Результат ProjectItem

GetFolderItems() публичный статический Метод

Gets the folder items.
public static GetFolderItems ( this instance, string folderName, bool withFileExtensions ) : IEnumerable
instance this The instance.
folderName string Name of the folder.
withFileExtensions bool if set to true [with file extensions].
Результат IEnumerable

GetFolderOrCreate() публичный статический Метод

Gets the folder or create.
public static GetFolderOrCreate ( this instance, string folderName ) : ProjectItem
instance this The instance.
folderName string Name of the folder.
Результат ProjectItem

GetFolderProjectItems() публичный статический Метод

Gets the folder project items.
public static GetFolderProjectItems ( this instance ) : IEnumerable
instance this The instance.
Результат IEnumerable

GetProjectItem() публичный статический Метод

Gets the project item.
public static GetProjectItem ( this instance, string fileName ) : ProjectItem
instance this The instance.
fileName string Name of the file.
Результат ProjectItem

GetProjectItems() публичный статический Метод

Gets the project items.
public static GetProjectItems ( this instance ) : IEnumerable
instance this The instance.
Результат IEnumerable

GetProjectPath() публичный статический Метод

Gets the project path.
public static GetProjectPath ( this instance ) : string
instance this The instance.
Результат string

GetProjectReferences() публичный статический Метод

Gets the project references.
public static GetProjectReferences ( this instance ) : IEnumerable
instance this The instance.
Результат IEnumerable

GetReferencePath() публичный статический Метод

Gets the reference path.
public static GetReferencePath ( this instance, string referenceName ) : string
instance this The instance.
referenceName string Name of the reference.
Результат string

GetSolutionFolderProjects() публичный статический Метод

Gets the solution folder projects.
public static GetSolutionFolderProjects ( this instance ) : IEnumerable
instance this The instance.
Результат IEnumerable

GetSubFolders() публичный статический Метод

Gets the sub folders.
public static GetSubFolders ( this instance, string folderName ) : IEnumerable
instance this The instance.
folderName string Name of the folder.
Результат IEnumerable

GetSubProjects() публичный статический Метод

Gets the sub projects.
public static GetSubProjects ( this instance ) : IEnumerable
instance this The instance.
Результат IEnumerable

HasNugetPackages() публичный статический Метод

Determines whether [has nuget packages] [the specified instance].
public static HasNugetPackages ( this instance ) : bool
instance this The instance.
Результат bool

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

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

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

Removes the file headers.
public static RemoveFileHeaders ( this instance ) : void
instance this The instance.
Результат void

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

Removes the folder.
public static RemoveFolder ( this instance, string folderName ) : ProjectItem
instance this The instance.
folderName string Name of the folder.
Результат ProjectItem

RemoveReference() публичный статический Метод

Removes the reference.
public static RemoveReference ( this instance, string referenceName ) : void
instance this The instance.
referenceName string Name of the reference.
Результат void

RemoveReferences() публичный статический Метод

Removes the reference.
public static RemoveReferences ( this instance, string value ) : void
instance this The instance.
value string The value.
Результат void

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

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

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

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