Summary
Creates a Chocolatey package using the specified Nuspec file.
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Pack")]
[CakeNamespaceImport("Cake.Common.Tools.Chocolatey.Pack")]
public static void ChocolateyPack(this ICakeContext context, FilePath nuspecFilePath, ChocolateyPackSettings settings)
Examples
var chocolateyPackSettings = new ChocolateyPackSettings {
Id = "TestChocolatey",
Title = "The tile of the package",
Version = "0.0.0.1",
Authors = new[] {"John Doe"},
Owners = new[] {"Contoso"},
Summary = "Excellent summary of what the package does",
Description = "The description of the package",
ProjectUrl = new Uri("https://github.com/SomeUser/TestChocolatey/"),
PackageSourceUrl = new Uri("https://github.com/SomeUser/TestChocolatey/"),
ProjectSourceUrl = new Uri("https://github.com/SomeUser/TestChocolatey/"),
DocsUrl = new Uri("https://github.com/SomeUser/TestChocolatey/"),
MailingListUrl = new Uri("https://github.com/SomeUser/TestChocolatey/"),
BugTrackerUrl = new Uri("https://github.com/SomeUser/TestChocolatey/"),
Tags = new [] {"Cake", "Script", "Build"},
Copyright = "Some company 2015",
LicenseUrl = new Uri("https://github.com/SomeUser/TestChocolatey/blob/master/LICENSE.md"),
RequireLicenseAcceptance= false,
IconUrl = new Uri("http://cdn.rawgit.com/SomeUser/TestChocolatey/master/icons/testchocolatey.png"),
ReleaseNotes = new [] {"Bug fixes", "Issue fixes", "Typos"},
Files = new [] {
new ChocolateyNuSpecContent {Source = "bin/TestChocolatey.dll", Target = "bin"},
},
Debug = false,
Verbose = false,
Force = false,
Noop = false,
LimitOutput = false,
ExecutionTimeout = 13,
CacheLocation = @"C:\temp",
AllowUnofficial = false
};
ChocolateyPack("./nuspec/TestChocolatey.nuspec", chocolateyPackSettings);
Attributes
Type |
Description |
CakeMethodAliasAttribute |
An attribute used to mark script method aliases.
|
CakeAliasCategoryAttribute |
An attribute used for documentation of alias methods/properties.
|
CakeNamespaceImportAttribute |
An attribute used to hint Cake about additional namespaces that need
to be imported for an alias to work. This attribute can mark an
extension method, the extension method class, or the assembly to provide a global set of imports.
|
Parameters
Return Value