ChocolateyNuSpecContent Class

Summary

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

Syntax

public sealed class ChocolateyNuSpecContent

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<ChocolateyNuSpecContent>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<ChocolateyNuSpecContent>(ChocolateyNuSpecContent[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<ChocolateyNuSpecContent>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<ChocolateyNuSpecContent>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<ChocolateyNuSpecContent>(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<ChocolateyNuSpecContent>(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
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin