ResolveSDKReference 类

定义

将 SDKReference 解析为磁盘上的完整路径Resolves an SDKReference to a full path on disk

public ref class ResolveSDKReference : Microsoft::Build::Tasks::TaskExtension
public class ResolveSDKReference : Microsoft.Build.Tasks.TaskExtension
type ResolveSDKReference = class
    inherit TaskExtension
Public Class ResolveSDKReference
Inherits TaskExtension
继承
ResolveSDKReference

构造函数

ResolveSDKReference()

创建 ResolveSDKReference 的新实例。Creates a new instance of ResolveSDKReference.

属性

BuildEngine

生成引擎自动设置此属性,以允许任务回调到其中。The build engine automatically sets this property to allow tasks to call back into it.

(继承自 Task)
BuildEngine2

生成引擎自动设置此属性,以允许任务回调到其中。The build engine automatically sets this property to allow tasks to call back into it. 这是一个便捷属性,因此从此类继承的任务作者不必将值从 IBuildEngine 强制转换为 IBuildEngine2。This is a convenience property so that task authors inheriting from this class do not have to cast the value from IBuildEngine to IBuildEngine2.

(继承自 Task)
BuildEngine3

检索主机提供的生成引擎接口的 IBuildEngine3 版本。Retrieves the IBuildEngine3 version of the build engine interface provided by the host.

(继承自 Task)
BuildEngine4

检索主机提供的生成引擎接口的 IBuildEngine4 版本。Retrieves the IBuildEngine4 version of the build engine interface provided by the host.

(继承自 Task)
BuildEngine5

检索主机提供的生成引擎接口的 IBuildEngine5 版本。Retrieves the IBuildEngine5 version of the build engine interface provided by the host.

(继承自 Task)
BuildEngine6

检索主机提供的生成引擎接口的 IBuildEngine6 版本。Retrieves the IBuildEngine6 version of the build engine interface provided by the host.

(继承自 Task)
BuildEngine7

获取主机提供的生成引擎接口的版本。Gets the version of the build engine interface provided by the host.

(继承自 Task)
DisallowedSDKDependencies

从目标文件传递来的不允许的依赖关系的列表(不建议使用)。例如,在面向 Win 8.1 或更高版本的项目中,应禁止使用“VCLibs 11”。List of disallowed dependencies passed from the targets file (deprecated) For instance "VCLibs 11" should be disallowed in projects targeting Win 8.1 or higher.

HelpKeywordPrefix

获取或设置前缀,该前缀用于通过字符串资源名称组成 help 关键字。Gets or sets the prefix used to compose help keywords from string resource names. 如果任务没有与消息关联的 help 关键字,则可以忽略此属性或将其设置为 null。If a task does not have help keywords associated with its messages, it can ignore this property or set it to null. 如果前缀设置为空字符串,则字符串资源名称将逐字用作 help 关键字。If the prefix is set to an empty string, then string resource names will be used verbatim as help keywords. 有关如何使用此前缀的示例,请参阅 TaskLoggingHelper.LogErrorWithCodeFromResources(string, object[]) 方法。For an example of how this prefix is used, see the TaskLoggingHelper.LogErrorWithCodeFromResources(string, object[]) method.

(继承自 Task)
HostObject

如果主机 IDE 具有与此特定任务关联的主机对象,则生成引擎会设置此属性。The build engine sets this property if the host IDE has associated a host object with this particular task.

(继承自 Task)
InstalledSDKs

安装的 SDKs 列表 SDK 的位置, SDKName 元数据是 SDKName。The list of installed SDKs the location of the SDK, the SDKName metadata is the SDKName.

Log

此 API 支持产品基础结构,不能在代码中直接使用。

获取包含任务日志记录方法的 TaskLoggingHelperExtension 类的实例。Gets an instance of a TaskLoggingHelperExtension class containing task logging methods.

(继承自 TaskExtension)
LogResolutionErrorsAsWarnings

确定应将解析 SDK 时遇到的问题记录为警告还是错误。Should problems resolving SDKs be logged as a warning or an error. 如果解决方案问题被记录为错误,该编译失败。If the resolution problem is logged as an error the build will fail. 如果解决方案问题被记录为警告,我们将发出警告并继续。If the resolution problem is logged as a warning we will warn and continue.

Prefer32Bit

在生成过程中使用的 prefer32bit 标志The prefer32bit flag used during the build

ProjectName

警告/错误消息中使用的 ProjectNameProjectName used in warning/error messages

References

可以传入引用,以便解析其 SDKName,然后将 sdkroot 路径附加到引用上,以便 RAR 可以在 SDK 位置正确找到程序集。Reference may be passed in so their SDKNames can be resolved and then sdkroot paths can be tacked onto the reference so RAR can find the assembly correctly in the sdk location.

ResolvedSDKReferences

已解析的 SDK 引用Resolved SDK References

RuntimeReferenceOnlySDKDependencies

从目标文件传递来的依赖项的列表,会将元数据 RuntimeReferenceOnly 设置为 true。List of dependencies passed from the targets file that will have the metadata RuntimeReferenceOnly set as true. 例如,在面向 Win 8.1 或更高版本的项目中,“VCLibs 11”应将此类元数据设置为 true。For instance "VCLibs 11" should have such a metadata set to true in projects targeting Win 8.1 or higher.

SDKReferences

磁盘上要解析为路径的 SDK 设置Set of SDK References to resolve to paths on disk

TargetedSDKArchitecture

所面向的 SDK 的体系结构Architecture of the SDK's we are targeting

TargetedSDKConfiguration

解析的 SDK 的配置Configuration for SDK's which are resolved

TargetPlatformIdentifier

警告/错误消息中使用的 TargetPlatformTargetPlatform used in warning/error messages

TargetPlatformVersion

用于筛选 SDK 的 TargetPlatformVersion 属性TargetPlatformVersion property used to filter SDKs

TaskResources

获取或设置任务的区域性特定资源。Gets or sets the task's culture-specific resources. 派生类应在构造期间注册资源,如果它们有本地化字符串,则可以通过此属性注册。Derived classes should register their resources either during construction, or via this property, if they have localized strings.

(继承自 Task)
WarnOnMissingPlatformVersion

当清单中不存在 MaxPlatformVersion 并且 ESDK 平台版本(来自其路径)不同于目标平台版本(来自其项目)时,启用警告Enables warning when MaxPlatformVersion is not present in the manifest and the ESDK platform version (from its path) is different than the target platform version (from the project)

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
Execute()

执行此任务。Execute the task.

GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于