Interface IVsActions
Code factory commands that are globally used in Visual Studio.
Namespace: CodeFactory.WinVs
Assembly: CodeFactory.WinVs.dll
Syntax
public interface IVsActions
Properties
DocumentActions
Visual Studio actions that work with the IVsDocument model.
Declaration
IVsDocumentActions DocumentActions { get; }
Property Value
Type | Description |
---|---|
IVsDocumentActions |
EnvironmentActions
Visual Studio actions that directly interact with Visual Studio itself.
Declaration
IVsEnvironmentActions EnvironmentActions { get; }
Property Value
Type | Description |
---|---|
IVsEnvironmentActions |
ProjectActions
Visual Studio actions that work with the IVsProject model.
Declaration
IVsProjectActions ProjectActions { get; }
Property Value
Type | Description |
---|---|
IVsProjectActions |
ProjectFolderActions
Visual Studio actions that work with the IVsProjectFolder model.
Declaration
IVsProjectFolderActions ProjectFolderActions { get; }
Property Value
Type | Description |
---|---|
IVsProjectFolderActions |
ProjectReferenceActions
Visual Studio actions that work with the IVsReference model.
Declaration
IVsReferenceActions ProjectReferenceActions { get; }
Property Value
Type | Description |
---|---|
IVsReferenceActions |
SolutionActions
Visual Studio actions that work with the IVsSolution model.
Declaration
IVsSolutionActions SolutionActions { get; }
Property Value
Type | Description |
---|---|
IVsSolutionActions |
SolutionFolderActions
Visual Studio actions that work with the IVsSolutionFolder model.
Declaration
IVsSolutionFolderActions SolutionFolderActions { get; }
Property Value
Type | Description |
---|---|
IVsSolutionFolderActions |
SourceActions
Visual Studio actions that work with source models.
Declaration
IVsSourceActions SourceActions { get; }
Property Value
Type | Description |
---|---|
IVsSourceActions |
UserInterfaceActions
Visual Studio actions that work the the Visual Studio user interface.
Declaration
IVsUIActions UserInterfaceActions { get; }
Property Value
Type | Description |
---|---|
IVsUIActions |
Methods
GetCSharpProjectFileFromSourceAsync(CsSource)
Gets the hosting C# source project file from for the CsSource model.
Declaration
Task<VsCSharpSource> GetCSharpProjectFileFromSourceAsync(CsSource sourceCode)
Parameters
Type | Name | Description |
---|---|---|
CsSource | sourceCode | The source code to get the C# source from. |
Returns
Type | Description |
---|---|
Task<VsCSharpSource> | The target c# source project file or null if the project is not defined for the source code. |
GetCSharpSourceAsync(string)
Loads the CsSource from the target code file provided.
Declaration
Task<CsSource> GetCSharpSourceAsync(string filePath)
Parameters
Type | Name | Description |
---|---|---|
string | filePath | Fully qualified path to the c# code file to load. |
Returns
Type | Description |
---|---|
Task<CsSource> | The C# source model or null if the model could not be loaded. |
GetProjectFileFromSourceAsync(CsSource)
Gets the hosting C# source project file from for the CsSource model.
Declaration
Task<VsDocument> GetProjectFileFromSourceAsync(CsSource sourceCode)
Parameters
Type | Name | Description |
---|---|---|
CsSource | sourceCode | The source code to get the C# source from. |
Returns
Type | Description |
---|---|
Task<VsDocument> | The target project file or null if the project is not defined for the source code. |
GetProjectFromSourceAsync(CsSource)
Gets the hosting project for the CsSource model.
Declaration
Task<VsProject> GetProjectFromSourceAsync(CsSource sourceCode)
Parameters
Type | Name | Description |
---|---|---|
CsSource | sourceCode | The source code to get the project from. |
Returns
Type | Description |
---|---|
Task<VsProject> | The target project or null if the project is not defined for the source code. |
GetSolutionAsync()
Gets the most current model of the solution.
Declaration
Task<VsSolution> GetSolutionAsync()
Returns
Type | Description |
---|---|
Task<VsSolution> | The solution model. |