Skip to content

DotNetSettingsExtensions Class

Definition

Extension methods for .NET settings.

C#
public static class DotNetSettingsExtensions

Inheritance object

Methods

SetFramework(DotNetPackSettings, string)

Sets the target framework to pack.

C#
public static DotNetPackSettings SetFramework(this DotNetPackSettings s, string framework)

Parameters

s Nuke.Common.Tools.DotNet.DotNetPackSettings
The settings to modify.

framework string
The framework name.

Returns

Nuke.Common.Tools.DotNet.DotNetPackSettings
The modified settings.

SetPlatform(DotNetTestSettings, string)

Sets the platform to test.

C#
public static DotNetTestSettings SetPlatform(this DotNetTestSettings s, string platform)

Parameters

s Nuke.Common.Tools.DotNet.DotNetTestSettings
The settings to modify.

platform string
The platform name.

Returns

Nuke.Common.Tools.DotNet.DotNetTestSettings
The modified settings.