ResolveNonMSBuildProjectOutput 类

定义

确定非 MSBuild 项目引用的输出文件。Determines the output files for non-MSBuild project references.

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

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

注解

ResolveNonMSBuildProjectOutput 任务搜索 Visual STUDIO IDE 为项目 guid 列表及其关联输出设置的特殊属性。The ResolveNonMSBuildProjectOutput task searches for a special property set by the Visual Studio IDE for the list of project GUIDs and their associated outputs. IDE 仅预解析非 MSBuild 项目,并以这种方式将 MSBuild 项目引用与非 MSBuild 引用分隔开来。The IDE only pre-resolves non-MSBuild projects and in this way separates MSBuild project references from non-MSBuild references. IDE 将 MSBuild 项目列表作为 UnresolvedProjectReferences 返回。The IDE returns the list of MSBuild projects as UnresolvedProjectReferences. 这使得任务可以使用功能更强大的 MSBuild 机制来仅操作 MSBuild 项目引用,例如,调用到引用的特定目标以获取清单文件名,而不能使用 MSBuild 和非 MSBuild 项目引用的混合列表。This enables the task to use more powerful MSBuild mechanisms to manipulate just the MSBuild project references, such as calling into specific targets of references to get the manifest file name, which would not be possible with a mixed list of MSBuild and non-MSBuild project references.

构造函数

ResolveNonMSBuildProjectOutput()

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

默认公共构造函数default public constructor

属性

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

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

一个特殊的 XML 字符串,包含解析的项目输出,我们只需要匹配项目并返回相应的路径A special XML string containing resolved project outputs - we need to simply match the projects and return the appropriate paths

ProjectReferences

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

项目引用的列表The list of project references

(继承自 ResolveProjectBase)
ResolvedOutputPaths

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

已解析引用路径的列表(保留原始项目引用特性)The list of resolved reference paths (preserving the original project reference attributes)

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

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

项目引用项的列表,其中这些项无法使用输出的预解析列表进行解析。The list of project reference items that could not be resolved using the pre-resolved list of outputs. 因为 VS 仅预解析非 MSBuild 项目,这意味着此列表中的项目引用都采用 MSBuild 格式。Since VS only pre-resolves non-MSBuild projects, this means that project references in this list are in the MSBuild format.

方法

AddSyntheticProjectReferences(String)

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

用于检索在解决方案 blob 中通过的多余的“项目引用”的 helper 方法。Helper method for retrieving the extra "project references" passed in the solution blob. 这些来自解决方案文件中所表述的依赖项。These came from dependencies expressed in the solution file itself.

(继承自 ResolveProjectBase)
Equals(Object)

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

(继承自 Object)
Execute()

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

Main task 方法Main task method

GetHashCode()

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

(继承自 Object)
GetProjectElement(ITaskItem)

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

用于检索给定项目的 XML 元素的 helper 方法Helper method for retrieving the XML element for the given project

(继承自 ResolveProjectBase)
GetProjectItem(ITaskItem)

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

用于检索给定项目的 XML 字符串中存储的内容的 helper 方法Helper method for retrieving whatever was stored in the XML string for the given project

(继承自 ResolveProjectBase)
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)

适用于