ExcelDnaPackAliases.

ExcelDnaPack(ICakeContext, 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, Action<ExcelDnaPackSettings> configurator)

Examples

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

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

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

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

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

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

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

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

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
configurator Action<ExcelDnaPackSettings> The settings configurator.

Return Value

Type Description
void