LibManInstallAliases.

LibManInstall(ICakeContext, LibManInstallSettings) Method

Summary

Installs client side libraries using the specified settings.
Assembly
Cake.LibMan.dll
Namespace
Cake.LibMan
Containing Type
LibManInstallAliases

Syntax

public static void LibManInstall(this ICakeContext context, LibManInstallSettings settings)

Examples

Installs client side libraries in a specific working directory ('libman install')

var settings = new LibManInstallSettings
       {
           WorkingDirectory = @"c:\myproject",
           Verbosity = LibManVerbosity.Detailed,
           Provider = CdnProvider.jsdelivr,
           Library = "[email protected]",
           Destination = "wwwroot/lib/jquery",
           Files =
           {
              "dist/jquery.min.js",
              "dist/jquery.min.map"
           },
       };
    LibManInstall(settings);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings LibManInstallSettings The settings.

Return Value

Type Description
void