ProtobufTools.

GetTarget(Nullable<OSTarget>, ICakePlatform) Method

Summary

Automatically determines the OSTarget.
Assembly
Cake.ProtobufTools.dll
Namespace
Cake.ProtobufTools
Containing Type
ProtobufTools

Syntax

public static OSTarget GetTarget(Nullable<OSTarget> source, ICakePlatform platform)

Remarks

Throws an exception if it can't determine the OS.

Parameters

Name Type Description
source Nullable<OSTarget> The target specified by user, can be null.
platform ICakePlatform The Cake platform.

Return Value

Type Description
OSTarget Returns a OSTarget based on input parameters.