Compartilhar via


SdkReference Class

Definition

Represents a software development kit (SDK) that is referenced in a <Project /> or <Import /> element.

public ref class SdkReference sealed : IEquatable<Microsoft::Build::Framework::SdkReference ^>
public sealed class SdkReference : IEquatable<Microsoft.Build.Framework.SdkReference>
type SdkReference = class
    interface IEquatable<SdkReference>
Public NotInheritable Class SdkReference
Implements IEquatable(Of SdkReference)
Inheritance
SdkReference
Implements

Constructors

SdkReference(String, String, String)

Initializes a new instance of the SdkReference class.

Properties

MinimumVersion

Gets the minimum version required. This value is specified by the project to indicate the minimum version of the SDK that is required in order to build. This is useful in order to produce an error message if a name match can be found but no acceptable version could be resolved.

Name

Gets the name of the SDK.

Version

Gets the version of the SDK.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

Equals(SdkReference)

Indicates whether the current object is equal to another object of the same type.

GetHashCode()

Serves as the default hash function.

ToString()

Returns a string that represents the current object.

TryParse(String, SdkReference)

Attempts to parse the specified string as a SdkReference. The expected format is: SDK, SDK/Version, or SDK/min=MinimumVersion Values are not required to specify a version or MinimumVersion.

Applies to