Show / Hide Table of Contents

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 Source

GetActiveProjectAsync()

Gets the active project.

Declaration
public Task<Project> GetActiveProjectAsync()
Returns
Type Description
System.Threading.Tasks.Task<EnvDTE.Project>
| Improve this Doc View Source

GetActiveProjectItemAsync()

Returns the active EnvDTE.ProjectItem.

Declaration
public Task<ProjectItem> GetActiveProjectItemAsync()
Returns
Type Description
System.Threading.Tasks.Task<EnvDTE.ProjectItem>
| Improve this Doc View Source

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>>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>>
| Improve this Doc View Source

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>
| Improve this Doc View Source

GetSolutionDirectoryAsync()

Gets the directory of the currently loaded solution.

Declaration
public Task<string> GetSolutionDirectoryAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.String>
| Improve this Doc View Source

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>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX