Search Results for

    Show / Hide Table of Contents

    Class NuGetHostContext

    Inheritance
    object
    NuGetHostContext
    Implements
    INuGetHostContext
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.NuGetManager.Host
    Assembly: LemonEdge.NuGetManager.dll
    Syntax
    public class NuGetHostContext : INuGetHostContext

    Constructors

    NuGetHostContext(IDependencyContextWrapper)

    Declaration
    public NuGetHostContext(IDependencyContextWrapper dependencyContextWrapper)
    Parameters
    Type Name Description
    IDependencyContextWrapper dependencyContextWrapper

    Methods

    GetHostFrameworkVersion(IEnumerable<FrameworkSpecificGroup>)

    Selects the NuGet.Packaging.FrameworkSpecificGroup that is nearest to the INuGetHostContext.GetTargetFramework() otherwise null

    Declaration
    public FrameworkSpecificGroup? GetHostFrameworkVersion(IEnumerable<FrameworkSpecificGroup> groups)
    Parameters
    Type Name Description
    IEnumerable<FrameworkSpecificGroup> groups

    The collection of NuGet.Packaging.FrameworkSpecificGroup

    Returns
    Type Description
    FrameworkSpecificGroup

    A NuGet.Packaging.FrameworkSpecificGroup or null

    GetTargetFramework(Assembly?)

    Gets the target framework of the entry assembly. GetEntryAssembly()

    Declaration
    public NuGetFramework GetTargetFramework(Assembly? hostAssembly = null)
    Parameters
    Type Name Description
    Assembly hostAssembly
    Returns
    Type Description
    NuGetFramework

    IsDependencySuppliedByHost(PackageDependency)

    Checks whether the NuGet.Packaging.Core.PackageDependency is already supplied by by the current Host

    Declaration
    public bool IsDependencySuppliedByHost(PackageDependency dep)
    Parameters
    Type Name Description
    PackageDependency dep
    Returns
    Type Description
    bool

    True if the dependency is supplied by the host, otherwise false

    Implements

    INuGetHostContext

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.