Search Results for

    Show / Hide Table of Contents

    New-UssDependency

    SYNOPSIS

    Creates a new dependency.

    SYNTAX

    New-UssDependency -PackageId <String> -VersionQuery <VersionQuery> [-Optional <Boolean>]
     [-OnlyRestrictVersion <Boolean>] [<CommonParameters>]
    

    DESCRIPTION

    Use New-UssDependency to create a new dependency object to use with a manifest.

    PARAMETERS

    -OnlyRestrictVersion

    Specifies that the dependency should only restrict the version of the package.

    Type: Boolean
    Parameter Sets: (All)
    Aliases:
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -Optional

    Specifies that the dependency is optional.

    Type: Boolean
    Parameter Sets: (All)
    Aliases:
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -PackageId

    Specifies the package id of the dependency.

    Type: String
    Parameter Sets: (All)
    Aliases: Package, Id
    
    Required: True
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -VersionQuery

    Specifies the version query of the dependency.

    Type: VersionQuery
    Parameter Sets: (All)
    Aliases: Version
    
    Required: True
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    CommonParameters

    This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

    INPUTS

    None

    OUTPUTS

    System.Object

    NOTES

    RELATED LINKS

    In This Article
    Back to top Generated by DocFX