PackageReference Class

Summary

Represents an URI resource.
Namespace
Cake.Core.Packaging
Base Types
  • object
graph BT Type-->Base0["object"] Type["PackageReference"] class Type type-node

Syntax

public sealed class PackageReference

Constructors

Name Summary
PackageReference(string) Initializes a new instance of the PackageReference class.
PackageReference(Uri) Initializes a new instance of the PackageReference class.

Properties

Name Value Summary
Address Uri
Gets the address.
OriginalString string
Gets the original string.
Package string
Gets the package.
Parameters IReadOnlyDictionary<string, IReadOnlyList<string>>
Gets the parameters.
Scheme string
Gets the scheme.

Extension Methods

Name Value Summary
Dump<PackageReference>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<PackageReference>(PackageReference[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<PackageReference>(string) void
Requires the Cake.Issues addin
NotNull<PackageReference>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<PackageReference>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<PackageReference>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin