NuSpecDependency Class

Summary

Represents a NuGet nuspec dependency.
Namespace
Cake.Common.Tools.NuGet.Pack
Base Types
  • object
graph BT Type-->Base0["object"] Type["NuSpecDependency"] class Type type-node

Syntax

public class NuSpecDependency

Properties

Name Value Summary
Exclude ICollection<string>
Gets or sets a list of include/exclude tags indicating of the dependency to exclude in the final package. The default value is build,analyzers which can be over-written.
Id string
Gets or sets the dependency's package ID.
Include ICollection<string>
Gets or sets a list of include/exclude tags indicating of the dependency to include in the final package. The default value is all.
TargetFramework string
Gets or sets the target framework for the dependency.
Version string
Gets or sets the dependency's version.

Extension Methods

Name Value Summary
Dump<NuSpecDependency>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<NuSpecDependency>(NuSpecDependency[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<NuSpecDependency>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<NuSpecDependency>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<NuSpecDependency>(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<NuSpecDependency>(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