NuSpecContent Class

Summary

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

Syntax

public sealed class NuSpecContent

Properties

Name Value Summary
Exclude string
Gets or sets the file or files to exclude. This is usually combined with a wildcard value in the src attribute. The exclude attribute can contain a semi-colon delimited list of files or a file pattern. Using a double wildcard - ** - implies a recursive exclude pattern.
Source string
Gets or sets the location of the file or files to include. The path is relative to the NuSpec file unless an absolute path is specified. The wildcard character - * - is allowed. Using a double wildcard - ** implies a recursive directory search.
Target string
Gets or sets the relative path to the directory within the package where the source files will be placed.

Extension Methods

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