C# Class Scorchio.VisualStudio.Extensions.ProjectExtensions

Defines the ProjectExtensions type.
Afficher le fichier Open project: asudbury/NinjaCoderForMvvmCross

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

AddItemToFolderFromTemplate() public static méthode

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.
Résultat bool

AddProjectReference() public static méthode

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

AddProjectToFolderFromTemplate() public static méthode

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.
Résultat bool

AddReference() public static méthode

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

AddReference() public static méthode

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.
Résultat System.Reference

AddTextTemplate() public static méthode

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].
Résultat string

AddToFolderFromFile() public static méthode

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.
Résultat ProjectItem

GetCSharpProjectItems() public static méthode

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

GetFolder() public static méthode

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

GetFolderItems() public static méthode

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].
Résultat IEnumerable

GetFolderOrCreate() public static méthode

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

GetFolderProjectItems() public static méthode

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

GetProjectItem() public static méthode

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

GetProjectItems() public static méthode

Gets the project items.
public static GetProjectItems ( this instance ) : IEnumerable
instance this The instance.
Résultat IEnumerable

GetProjectPath() public static méthode

Gets the project path.
public static GetProjectPath ( this instance ) : string
instance this The instance.
Résultat string

GetProjectReferences() public static méthode

Gets the project references.
public static GetProjectReferences ( this instance ) : IEnumerable
instance this The instance.
Résultat IEnumerable

GetReferencePath() public static méthode

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

GetSolutionFolderProjects() public static méthode

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

GetSubFolders() public static méthode

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

GetSubProjects() public static méthode

Gets the sub projects.
public static GetSubProjects ( this instance ) : IEnumerable
instance this The instance.
Résultat IEnumerable

HasNugetPackages() public static méthode

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

RemoveComments() public static méthode

Removes the comments.
public static RemoveComments ( this instance ) : void
instance this The instance.
Résultat void

RemoveFileHeaders() public static méthode

Removes the file headers.
public static RemoveFileHeaders ( this instance ) : void
instance this The instance.
Résultat void

RemoveFolder() public static méthode

Removes the folder.
public static RemoveFolder ( this instance, string folderName ) : ProjectItem
instance this The instance.
folderName string Name of the folder.
Résultat ProjectItem

RemoveReference() public static méthode

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

RemoveReferences() public static méthode

Removes the reference.
public static RemoveReferences ( this instance, string value ) : void
instance this The instance.
value string The value.
Résultat void

ReplaceText() public static méthode

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.
Résultat void

ReplaceTextInCSharpFiles() public static méthode

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.
Résultat void