DotNetOutdatedAliases.

DotNetOutdatedUpgrade(ICakeContext, string, DotNetOutdatedUpgradeSettings) Method

Summary

Upgrades outdated NuGet packages of a solution, project or directory using dotnet-outdated and the specified settings.

Syntax

public static void DotNetOutdatedUpgrade(this ICakeContext context, string path, DotNetOutdatedUpgradeSettings settings)

Examples

DotNetOutdatedUpgrade("./src/App.sln", new DotNetOutdatedUpgradeSettings
{
    VersionLock = DotNetOutdatedVersionLock.Major,
    NoRestore = true
});

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
path string The solution, project or directory to upgrade; the current directory if empty.
settings DotNetOutdatedUpgradeSettings The settings.

Return Value

Type Description
void