CodeFactory for Windows CodeFactory for Windows
CodeFactory for Windows CodeFactory for Windows
CodeFactory

Search Results for

    Class VsActionsExtensions

    Extension methods that support IVSActions

    Inheritance
    object
    VsActionsExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: CodeFactory.WinVs
    Assembly: CodeFactory.WinVs.dll
    Syntax
    public static class VsActionsExtensions

    Methods

    GetCSharpSourceAsync(IVsActions, CsContainer)

    Loads the most current instance of the source for the provided container.

    Declaration
    public static Task<CsSource> GetCSharpSourceAsync(this IVsActions source, CsContainer container)
    Parameters
    Type Name Description
    IVsActions source

    CodeFactory automation for Visual Studio Windows

    CsContainer container

    Target C# container to get the source for.

    Returns
    Type Description
    Task<CsSource>

    The target C# source or null if the source could not be found.

    GetCSharpSourceAsync(IVsActions, CsMember)

    Loads the most current instance of the source for the provided member.

    Declaration
    public static Task<CsSource> GetCSharpSourceAsync(this IVsActions source, CsMember member)
    Parameters
    Type Name Description
    IVsActions source

    CodeFactory automation for Visual Studio Windows

    CsMember member

    The target c# member model to load the source from.

    Returns
    Type Description
    Task<CsSource>

    The target C# source or null if the source could not be found.

    GetProjectFolderFromConfigAsync(IVsActions, ConfigProject, string, bool)

    Gets the project folder based on the source directory name. That is defined in the configuration project.

    Declaration
    public static Task<VsProjectFolder> GetProjectFolderFromConfigAsync(this IVsActions source, ConfigProject projectSource, string sourceDirectoryName, bool addMissingFolder = false)
    Parameters
    Type Name Description
    IVsActions source

    The Visual Studio extensions for CodeFactory.

    ConfigProject projectSource

    The configuration data for the project source.

    string sourceDirectoryName

    The source directories name to load.

    bool addMissingFolder

    Optional flag that determines if the project folder should be created if it does not exist. The default is false.

    Returns
    Type Description
    Task<VsProjectFolder>

    The CodeFactory project folder model or null if the project folder could not be found.

    GetProjectFromConfigAsync(IVsActions, ConfigProject)

    Extension method that gets the CodeFactory project model for this configuration project.

    Declaration
    public static Task<VsProject> GetProjectFromConfigAsync(this IVsActions source, ConfigProject projectSource)
    Parameters
    Type Name Description
    IVsActions source

    The Visual Studio extensions for CodeFactory.

    ConfigProject projectSource

    The configuration data for the project source.

    Returns
    Type Description
    Task<VsProject>

    New instance of the project model or null if it could not be loaded.

    GetTargetProjectAsync(IVsActions, string)

    Gets the target project from the solution by name of the project.

    Declaration
    public static Task<VsProject> GetTargetProjectAsync(this IVsActions source, string projectName)
    Parameters
    Type Name Description
    IVsActions source

    Visual studio actions to get the project from.

    string projectName

    The name of the project to load from.

    Returns
    Type Description
    Task<VsProject>

    The target project or null if the project cannot be found.

    © CodeFactory, LLC. All rights reserved.