NuSpecContentFile Class

Summary

Specifies the package's content to identify the exact files that are included in the package.
Namespace
Cake.Common.Tools.NuGet.Pack
Base Types
  • object
graph BT Type-->Base0["object"] Type["NuSpecContentFile"] class Type type-node

Syntax

public class NuSpecContentFile

Properties

Name Value Summary
BuildAction string
Gets or sets the build action to assign to the content item for MSBuild, e.g. Compile. Defaults to Compile.
CopyToOutput bool
Gets or sets a value indicating whether to copy content items to the build (or publish) output folder. Defaults to false.
Exclude string
Gets or sets files or file patterns to exclude from src location. The wildcard character - * - is allowed. Using a double wildcard - ** implies a recursive directory search.
Flatten bool
Gets or sets a value indicating whether to copy content items to a single folder in the build output or to preserve the folder structure in the package. This flag only works when copyToOutput flag is set to true. Defaults to false.
Include string
Gets or sets the location of the file or files to include. The wildcard character - * - is allowed. Using a double wildcard - ** implies a recursive directory search.

Extension Methods

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