ExcelDnaPackAliases.

ExcelDnaPack(ICakeContext, FilePath, Action<ExcelDnaPackSettings>) Method

Summary

Run the ExcelDnaPack tool using the settings returned by a configurator.
Assembly
Cake.ExcelDnaPack.dll
Namespace
Cake.ExcelDnaPack
Containing Type
ExcelDnaPackAliases

Syntax

public static void ExcelDnaPack(this ICakeContext context, FilePath dnaFilePath, Action<ExcelDnaPackSettings> configurator)

Examples

Enable interactive prompt to overwrite the output .xll file, if it already exists

ExcelDnaPack("MyAddin.dna", settings => settings
    .PromptBeforeOverwrite()
);
// ...

Disable compression (LZMA) of resources (e.g. `/NoCompression`)

ExcelDnaPack("MyAddin.dna", settings => settings
    .NoCompression()
);
// ...

Disable multi-threading to ensure deterministic order of packing (e.g. `/NoMultiThreading`)

ExcelDnaPack("MyAddin.dna", settings => settings
    .NoMultiThreading()
);
// ...

The output path for the packed .xll file (e.g. `/O MyAddin-x86-packed.xll`)

ExcelDnaPack("MyAddin.dna", settings => settings
    .SetOutputXllFilePath("MyAddin-x86-packed.xll")
);
// ...

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
dnaFilePath FilePath The path to the primary .dna file for the Excel-DNA add-in.
configurator Action<ExcelDnaPackSettings> The settings configurator.

Return Value

Type Description
void