Class Solution
A collection of services and helpers related to solutions.
Inheritance
System.Object
Solution
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Community.VisualStudio.Toolkit
Assembly: Community.VisualStudio.Toolkit.dll
Syntax
public class Solution
Methods
| Improve this Doc View SourceGetActiveProjectAsync()
Gets the active project.
Declaration
public Task<Project> GetActiveProjectAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<EnvDTE.Project> |
GetActiveProjectItemAsync()
Returns the active EnvDTE.ProjectItem.
Declaration
public Task<ProjectItem> GetActiveProjectItemAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<EnvDTE.ProjectItem> |
GetAllProjectsInSolutionAsync()
Gets all projects int he solution
Declaration
public Task<IEnumerable<Project>> GetAllProjectsInSolutionAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<EnvDTE.Project>> |
GetOpenProjectOrSolutionDlgAsync()
Opens a Solution or Project using the standard open dialog boxes.
Declaration
public Task<IVsOpenProjectOrSolutionDlg> GetOpenProjectOrSolutionDlgAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Microsoft.VisualStudio.Shell.Interop.IVsOpenProjectOrSolutionDlg> |
GetSelectedItemsAsync()
Gets a list of the selected items.
Declaration
public Task<IEnumerable<SelectedItem>> GetSelectedItemsAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<EnvDTE.SelectedItem>> |
GetSolutionAsync()
Provides top-level manipulation or maintenance of the solution.
Declaration
public Task<IVsSolution> GetSolutionAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Microsoft.VisualStudio.Shell.Interop.IVsSolution> |
GetSolutionDirectoryAsync()
Gets the directory of the currently loaded solution.
Declaration
public Task<string> GetSolutionDirectoryAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> |
GetSolutionFilePathAsync()
Gets the file path of the currently loaded solution file (.sln).
Declaration
public Task<string> GetSolutionFilePathAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> |