C# Class Scorchio.VisualStudio.Extensions.ProjectExtensions

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

Public Methods

Method Description
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.

Method Details

AddAssemblies() public static method

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.
return void

AddItemToFolderFromTemplate() public static method

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.
return bool

AddProjectReference() public static method

Adds the project reference.
public static AddProjectReference ( this instance, Project referencedProject ) : System.Reference
instance this The instance.
referencedProject Project The referenced project.
return System.Reference

AddProjectToFolderFromTemplate() public static method

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.
return bool

AddReference() public static method

Adds the reference.
public static AddReference ( this instance, string path ) : System.Reference
instance this The instance.
path string The path.
return System.Reference

AddReference() public static method

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.
return System.Reference

AddTextTemplate() public static method

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].
return string

AddToFolderFromFile() public static method

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.
return ProjectItem

GetCSharpProjectItems() public static method

Gets the c# project items.
public static GetCSharpProjectItems ( this instance ) : IEnumerable
instance this The instance.
return IEnumerable

GetFolder() public static method

Gets the folder.
public static GetFolder ( this instance, string folderName ) : ProjectItem
instance this The instance.
folderName string Name of the folder.
return ProjectItem

GetFolderItems() public static method

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].
return IEnumerable

GetFolderOrCreate() public static method

Gets the folder or create.
public static GetFolderOrCreate ( this instance, string folderName ) : ProjectItem
instance this The instance.
folderName string Name of the folder.
return ProjectItem

GetFolderProjectItems() public static method

Gets the folder project items.
public static GetFolderProjectItems ( this instance ) : IEnumerable
instance this The instance.
return IEnumerable

GetProjectItem() public static method

Gets the project item.
public static GetProjectItem ( this instance, string fileName ) : ProjectItem
instance this The instance.
fileName string Name of the file.
return ProjectItem

GetProjectItems() public static method

Gets the project items.
public static GetProjectItems ( this instance ) : IEnumerable
instance this The instance.
return IEnumerable

GetProjectPath() public static method

Gets the project path.
public static GetProjectPath ( this instance ) : string
instance this The instance.
return string

GetProjectReferences() public static method

Gets the project references.
public static GetProjectReferences ( this instance ) : IEnumerable
instance this The instance.
return IEnumerable

GetReferencePath() public static method

Gets the reference path.
public static GetReferencePath ( this instance, string referenceName ) : string
instance this The instance.
referenceName string Name of the reference.
return string

GetSolutionFolderProjects() public static method

Gets the solution folder projects.
public static GetSolutionFolderProjects ( this instance ) : IEnumerable
instance this The instance.
return IEnumerable

GetSubFolders() public static method

Gets the sub folders.
public static GetSubFolders ( this instance, string folderName ) : IEnumerable
instance this The instance.
folderName string Name of the folder.
return IEnumerable

GetSubProjects() public static method

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

HasNugetPackages() public static method

Determines whether [has nuget packages] [the specified instance].
public static HasNugetPackages ( this instance ) : bool
instance this The instance.
return bool

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 file headers.
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 ) : ProjectItem
instance this The instance.
folderName string Name of the folder.
return ProjectItem

RemoveReference() public static method

Removes the reference.
public static RemoveReference ( this instance, string referenceName ) : void
instance this The instance.
referenceName string Name of the reference.
return void

RemoveReferences() public static method

Removes the reference.
public static RemoveReferences ( this instance, string value ) : void
instance this The instance.
value string The value.
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.
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