Method | Description | |
---|---|---|
AddNewItemFromVsTemplate ( ProjectItems parent, string templateName, string language, string name ) : ProjectItem |
Create a new item in the project
|
|
CanFindToolwindow ( System.Guid persistenceGuid ) : bool | ||
CloseCurrentSolution ( __VSSLNSAVEOPTIONS saveoptions ) : void | ||
CloseInEditorWithoutSaving ( string fullFileName ) : void | ||
CreateEmptySolution ( string directory, string solutionName ) : void |
Closes the currently open solution (if any), and creates a new solution with the given name.
|
|
CreateProjectFromTemplate ( string projectName, string templateName, string language, bool exclusive ) : void |
Creates a project.
|
|
ExecuteCommand ( |
Executes a Command (menu item) in the given context
|
|
ForceSaveSolution ( ) : void | ||
GetEmbeddedStringResource ( |
Gets the embedded file identified by the resource name, and converts the file into a string.
|
|
GetNewDirectoryName ( string directory, string baseDirectoryName ) : string |
Returns the first available directory name on the form [baseDirectoryName]i where [i] starts at 1 and increases until there is an available directory name in the given directory. Also creates the directory to mark it as occupied.
|
|
GetNewFileName ( string directory, string baseFileName, string extension ) : string |
Returns the first available file name on the form [baseFileName]i.[extension] where [i] starts at 1 and increases until there is an available file name in the given directory. Also creates an empty file with that name to mark that file as occupied.
|
|
LoadPackage ( System.Guid packageGuid ) : IVsPackage | ||
ProjectCount ( ) : int |
Get current number of open project in solution
|
|
SaveDocument ( string documentMoniker ) : void |
Save an open document.
|
|
WriteEmbeddedResourceToBinaryFile ( |
Writes an embedded resource to a file.
|
|
WriteEmbeddedResourceToFile ( |
|
Method | Description | |
---|---|---|
GetNewFileOrDirectoryNameWithoutCreatingAnything ( string directory, string baseFileName, string extension ) : string |
|
public AddNewItemFromVsTemplate ( ProjectItems parent, string templateName, string language, string name ) : ProjectItem | ||
parent | ProjectItems | the parent collection for the new item |
templateName | string | |
language | string | |
name | string | |
return | ProjectItem |
public CanFindToolwindow ( System.Guid persistenceGuid ) : bool | ||
persistenceGuid | System.Guid | |
return | bool |
public CloseCurrentSolution ( __VSSLNSAVEOPTIONS saveoptions ) : void | ||
saveoptions | __VSSLNSAVEOPTIONS | |
return | void |
public CloseInEditorWithoutSaving ( string fullFileName ) : void | ||
fullFileName | string | |
return | void |
public CreateEmptySolution ( string directory, string solutionName ) : void | ||
directory | string | |
solutionName | string | Name of new solution. |
return | void |
public CreateProjectFromTemplate ( string projectName, string templateName, string language, bool exclusive ) : void | ||
projectName | string | Name of new project. |
templateName | string | Name of project template to use |
language | string | language |
exclusive | bool | |
return | void |
public ExecuteCommand ( |
||
cmd | ||
return | void |
public static GetEmbeddedStringResource ( |
||
assembly | ||
resourceName | string | In VS, is DefaultNamespace.FileName? |
return | string |
public static GetNewDirectoryName ( string directory, string baseDirectoryName ) : string | ||
directory | string | Directory that the file should live in. |
baseDirectoryName | string | |
return | string |
public static GetNewFileName ( string directory, string baseFileName, string extension ) : string | ||
directory | string | Directory that the file should live in. |
baseFileName | string | |
extension | string | may be null, in which case the .[extension] part /// is not added. |
return | string |
public LoadPackage ( System.Guid packageGuid ) : IVsPackage | ||
packageGuid | System.Guid | |
return | IVsPackage |
public SaveDocument ( string documentMoniker ) : void | ||
documentMoniker | string | for filebased documents this is the full path to the document |
return | void |
public static WriteEmbeddedResourceToBinaryFile ( |
||
assembly | The name of the assembly that the embedded resource is defined. | |
embeddedResourceName | string | The name of the embedded resource. |
fileName | string | The file to write the embedded resource's content. |
return | void |
public static WriteEmbeddedResourceToFile ( |
||
assembly | ||
embeddedResourceName | string | |
fileName | string | |
return | void |