DotNetMSBuildSettingsExtensions.

SetRuntime(DotNetMSBuildSettings, string) Method

Summary

Sets a target operating systems where the application or assembly will run.

Syntax

public static DotNetMSBuildSettings SetRuntime(this DotNetMSBuildSettings settings, string runtimeId)

Remarks

For list of runtime ids see https://docs.microsoft.com/en-us/dotnet/core/rid-catalog.

Parameters

Name Type Description
settings DotNetMSBuildSettings The settings.
runtimeId string The runtime id of the operating system.

Return Value

Type Description
DotNetMSBuildSettings The same DotNetMSBuildSettings instance so that multiple calls can be chained.