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 |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
| IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
| NotNull |
void |
Throws an exception if the specified parameter's value is null.
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
| NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
| ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
| ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
| ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
| To |
string |
Returns the string value or a
Not set> markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|
