Interface IVsActions
Code factory commands that are globally used in Visual Studio.
Namespace: CodeFactory.VisualStudio
Assembly: CodeFactory.VisualStudio.dll
Syntax
public interface IVsActions
Properties
| Improve this Doc View SourceDocumentActions
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
| Improve this Doc View SourceGetCSharpProjectFileFromSourceAsync(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. |
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. |