GetSDKReferenceFiles 类

定义

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

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

构造函数

GetSDKReferenceFiles()

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

属性

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)
CacheFileFolderPath

应存储缓存文件的路径Path where the cache files should be stored

CopyLocalFiles

需要在本地复制的文件,这些是引用程序集和 xml intellisense 文件。Files that need to be copied locally, this is the reference assemblies and the xml intellisense files.

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)
Log

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

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

(继承自 TaskExtension)
LogCacheFileExceptions

我们是否应记录读取和写入缓存文件时遇到的异常Should we log exceptions which were hit when the cache file is being read and written to

LogRedistConflictBetweenSDKsAsWarning

应将不同引用 SDK 的可再发行程序包文件之间的冲突记录为消息还是警告。Should conflicts between redist files across different referenced SDKs be logged as a message or a warning. 默认设置是将其记录为警告。The default is to log them as a warning.

LogRedistConflictWithinSDKAsWarning

应将某个 SDK 中的可再发行程序包文件之间的冲突记录为消息还是警告。Should conflicts between redist files within an SDK be logged as a message or a warning. 默认设置是将其记录为消息。The default is to log them as a message.

LogRedistFilesList

是否应记录在解析 SDK 过程中发现的可再发行程序包文件。Should the redist files found as part of resolving the sdk be logged. 默认值为 trueThe default is true

LogReferenceConflictBetweenSDKsAsWarning

应将不同引用 SDK 的引用文件之间的冲突记录为消息还是警告。Should conflicts between reference files across different referenced SDKs be logged as a message or a warning. 默认设置是将其记录为警告。The default is to log them as a warning.

LogReferenceConflictWithinSDKAsWarning

应将某个 SDK 中的引用文件之间的冲突记录为消息还是警告。Should conflicts between reference files within an SDK be logged as a message or a warning. 默认设置是将其记录为消息。The default is to log them as a message.

LogReferencesList

是否应记录在解析 SDK 过程中发现的引用。Should the references found as part of resolving the sdk be logged. 默认值为 trueThe default is true

RedistFiles

解析的可再发行程序包文件。Resolved redist files.

ReferenceExtensions

应被视为引用文件的扩展,我们将按照数组中的指定顺序来查找这些文件。Extensions which should be considered reference files, we will look for the files in the order they are specified in the array.

References

已解析的引用项。Resolved reference items.

ResolvedSDKReferences

解决我们将从中获取引用程序集的 SDK 引用。Resolved SDK references which we will get the reference assemblies from.

TargetPlatformIdentifier

目标平台标识符。The targetted platform identifier.

TargetPlatformVersion

目标平台版本。The targeted platform version.

TargetSDKIdentifier

目标 SDK 标识符。The targetted SDK identifier.

TargetSDKVersion

目标 SDK 版本。The targeted SDK version.

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)

方法

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)

适用于