WarpAliases.

Warp(ICakeContext, WarpSettings) Method

Summary

Runs the warp packer binary with the specified settings.
Assembly
Cake.Warp.dll
Namespace
Cake.Warp
Containing Type
WarpAliases

Syntax

public static void Warp(this ICakeContext context, WarpSettings settings)

Examples

This example shows a basic call to create the packed binary, by first calling dotnet publish to create the program.
 #addin nuget:?package=Cake.Warp&version=0.1.0

 Task("Create-Warp-Binary")
     .Does(() =>
 {
     DotNetCorePublish("./src/Cake.Warp.Demo", new DotNetCorePublishSettings {
         Framework         = "netcoreapp2.0",
         RuntimeIdentifier = "win-x64",
         Configuration     = "Release",
         OutputDirectory   = "./artifacts/output"
     });
     Warp(new WarpSettings {
         InputDirectory = "./artifacts/output",
         ExecutableName = "Cake.Warp.Demo.exe,
         OutputFilePath = "./artifacts/cake-warp-demo",
         Architecture   = WarpPlatform.WindowsX64"
     });
 });

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The cake context.
settings WarpSettings The settings to use when creating the packed binary file.

Return Value

Type Description
void