Csc 类

定义

实现 Csc 任务。Implements the Csc task. 使用项目文件中的 Csc 元素创建和执行此任务。Use the Csc element in your project file to create and execute this task. 有关用法和参数信息,请参阅 Csc 任务For usage and parameter information, see Csc Task.

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

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

构造函数

Csc()

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

初始化 Csc 类的新实例。Initializes a new instance of the Csc class.

属性

AdditionalLibPaths

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

获取或设置要在其中查找程序集的其他文件夹。Gets or sets the additional folders in which to look for assemblies.

(继承自 ManagedCompiler)
AddModules

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

获取或设置可用于你正在进行编译的项目的编译器的模块。Gets or sets the modules for the compiler to make available to the project you are currently compiling.

(继承自 ManagedCompiler)
AllowUnsafeBlocks

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

获取或设置一个布尔值,该值指示是否编译使用 unsafe 关键字的代码。Gets or sets a Boolean value that indicates whether to compile code that uses the unsafe keyword.

ApplicationConfiguration

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

返回配置信息。Returns configuration information.

Bag

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

获取派生任务类所使用参数的集合。Gets the collection of parameters used by the derived task class.

(继承自 ToolTaskExtension)
BaseAddress

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

获取或设置加载 DLL 的首选基址。Gets or sets the preferred base address at which to load a DLL.

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

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

获取或设置一个值,该值指示 Csc 任务是否会对溢出数据类型边界的整数算法导致运行时异常。Gets or sets a value that indicates whether the Csc task should cause an exception at run time for integer arithmetic that overflows the bounds of the data type.

CodePage

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

获取或设置要用于编译中所有源代码文件的代码页。Gets or sets the code page to use for all source code files in the compilation.

(继承自 ManagedCompiler)
DebugType

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

获取或设置调试类型。Gets or sets the debug type.

(继承自 ManagedCompiler)
DefineConstants

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

获取或设置条件编译器常量。Gets or sets the conditional compiler constants.

(继承自 ManagedCompiler)
DelaySign

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

获取或设置一个值,该值指示是否在程序集中放置公钥。Gets or sets a value indicating whether the public key is placed in the assembly.

(继承自 ManagedCompiler)
DisabledWarnings

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

获取或设置要禁用的警告的列表。Gets or sets the list of warnings to be disabled.

DocumentationFile

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

获取或设置用于保存文档注释的 XML 文件。Gets or sets the XML file to hold the documentation comments.

EchoOff

当设置为 true 时,它将 / Q 传递到 cmd.exe 命令行,这样命令行不会在 stdout 上得到回显When set to true, it passes /Q to the cmd.exe command line such that the command line does not get echo-ed on stdout

(继承自 ToolTask)
EmitDebugInformation

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

获取或设置一个值,该值指示编译器是否生成调试信息。Gets or sets a value indicating whether the compiler generates debugging information.

(继承自 ManagedCompiler)
EnvironmentOverride
已过时。

获取路径替代值。Gets the Path override value.

(继承自 ToolTask)
EnvironmentVariables

除了(或者有选择地重写)常规的环境块外,应传递到生成的可执行文件的用等号分隔的环境变量对的数组。Array of equals-separated pairs of environment variables that should be passed to the spawned executable, in addition to (or selectively overriding) the regular environment block.

(继承自 ToolTask)
ErrorEndLocation

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

如果正确,输出每个错误结尾位置的行和列。If true, outputs the line and column of the end location of each error.

ErrorReport

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

获取或设置用于将 C# 内部编译器错误报告给 Microsoft 的方法。Gets or sets the method to report a C# internal compiler error to Microsoft.

ExitCode

生成的进程的返回码。The return code of the spawned process. 如果任务记录了任何错误,但进程的退出代码为 0(成功),这设置为 -1。If the task logged any errors, but the process had an exit code of 0 (success), this will be set to -1.

(继承自 ToolTask)
FileAlignment

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

获取或设置一个值,该值表示要将输出文件的代码段对齐到的位置。Gets or sets a value indicating where to align the sections of the output file.

(继承自 ManagedCompiler)
GenerateFullPaths

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

获取或设置一个布尔值,该值指示是在编译器输出中生成文件的绝对路径 (true) 还是在编译器输出中生成文件的名称 (false)。Gets or sets a Boolean value that indicates whether to generate the absolute path to the file in the compiler output (true) or to generate the name of the file in the compiler output (false).

HasLoggedErrors

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

此 ToolTaskExtension 是否记录了任何错误Whether this ToolTaskExtension has logged any errors

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

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

获取或设置 HighEntropyVA 特性。Gets or sets the HighEntropyVA attribute.

(继承自 ManagedCompiler)
HostCompilerSupportsAllParameters

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

获取或设置一个值,该值指示宿主编译器是否支持所有任务参数。Gets or sets a value indicating whether the host compiler supports all task parameters.

(继承自 ManagedCompiler)
HostObject

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

(继承自 Task)
KeyContainer

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

获取或设置加密密钥容器的名称。Gets or sets the name of the cryptographic key container.

(继承自 ManagedCompiler)
KeyFile

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

获取或设置包含加密密钥的文件名。Gets or sets the file name containing the cryptographic key.

(继承自 ManagedCompiler)
LangVersion

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

获取或设置要使用的语言版本。Gets or sets the version of the language to use.

LinkResources

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

获取或设置要链接到输出文件的 .NET Framework 资源文件。Gets or sets the .NET Framework resource files to link to the output file.

(继承自 ManagedCompiler)
Log

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

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

(继承自 ToolTaskExtension)
LogStandardErrorAsError

应将标准错误流上接收的所有消息作为错误记录。Should ALL messages received on the standard error stream be logged as errors.

(继承自 ToolTask)
MainEntryPoint

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

获取或设置包含主入口点的类或模块。Gets or sets the class or module that contains the main entry point.

(继承自 ManagedCompiler)
ModuleAssemblyName

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

获取或设置一个程序集,.netmodule 可以访问其非公共类型。Gets or sets an assembly whose non-public types a .netmodule can access.

NoConfig

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

获取或设置一个值,该值指示编译器是否应使用默认响应文件。Gets or sets a value indicating whether the compiler should use the default response file.

(继承自 ManagedCompiler)
NoLogo

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

获取或设置一个值,该值表示是否禁止显示编译器横幅信息。Gets or sets a value indicating whether to suppress the compiler banner information.

(继承自 ManagedCompiler)
NoStandardLib

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

获取或设置一个布尔值,该值指示 Csc 任务是否应阻止导入 mscorlib.dll,后者定义整个系统命名空间。Gets or sets a Boolean value that indicates whether the Csc task should prevent the import of mscorlib.dll, which defines the entire System namespace.

NoWin32Manifest

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

获取或设置一个布尔值,该值指定是否为应用程序生成外部 UAC 清单。Gets or sets a Boolean value that specifies whether an external UAC manifest is generated for the application.

(继承自 ManagedCompiler)
Optimize

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

获取或设置指示是否启用编译器优化的值。Gets or sets a value indicating whether to enable compiler optimizations.

(继承自 ManagedCompiler)
OutputAssembly

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

获取或设置输出文件的名称。Gets or sets the name of the output file.

(继承自 ManagedCompiler)
PdbFile

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

获取或设置 .pbd 文件的路径。Gets or sets the path of the .pdb file.

Platform

获取或设置输出文件的目标处理器平台。Gets or sets the processor platform to be targeted by the output file.

Platform

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

获取或设置平台特性。Gets or sets the Platform attribute.

(继承自 ManagedCompiler)
Prefer32Bit

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

获取或设置 Prefer32Bit 特性。Gets or sets the Prefer32Bit attribute.

(继承自 ManagedCompiler)
PreferredUILang

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

传递给“/preferreduilang”编译器选项的语言的名称。The name of the language passed to the "/preferreduilang" compiler option.

References

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

获取或设置编译器将从中导入公共类型信息的项。Gets or sets the items from which the compiler will import public type information.

(继承自 ManagedCompiler)
Resources

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

获取或设置要嵌入到输出文件中的 .NET Framework 资源。Gets or sets the .NET Framework resources to embed in the output file.

(继承自 ManagedCompiler)
ResponseFileEncoding

用于指定响应文件编码的可替代属性,默认为 UTF8Overridable property specifying the encoding of the response file, UTF8 by default

(继承自 ToolTask)
ResponseFiles

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

获取或设置包含任务命令的响应文件。Gets or sets the response files that contain commands for the task.

(继承自 ManagedCompiler)
Sources

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

获取或设置要编译的源文件。Gets or sets the source files to compile.

(继承自 ManagedCompiler)
StandardErrorEncoding

可重写的属性,用于指定捕获的任务标准错误流的编码值Overridable property specifying the encoding of the captured task standard error stream

(继承自 ToolTask)
StandardErrorImportance

任务参数:用于从标准错误流记录文本的重要性。Task Parameter: Importance with which to log text from the standard error stream.

(继承自 ToolTask)
StandardErrorImportanceToUse

记录标准错误消息时使用的实际重要性。The actual importance at which standard error messages will be logged.

(继承自 ToolTask)
StandardErrorLoggingImportance

用于从标准错误流记录文本的重要性。Importance with which to log text from the standard error stream.

(继承自 ToolTask)
StandardOutputEncoding

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

获取或设置已捕获的任务标准输出流的编码。Gets or sets the encoding of the captured task standard output stream.

(继承自 ManagedCompiler)
StandardOutputImportance

任务参数:关于记录标准输出流的文本的重要性。Task Parameter: Importance with which to log text from the standard out stream.

(继承自 ToolTask)
StandardOutputImportanceToUse

记录标准输出消息时使用的实际重要性。The actual importance at which standard out messages will be logged.

(继承自 ToolTask)
StandardOutputLoggingImportance

从标准输出流中记录文本时使用的重要性。Importance with which to log text from in the standard out stream.

(继承自 ToolTask)
SubsystemVersion

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

获取或设置 SubsystemVersion 特性值。Gets or sets the SubsystemVersion attribute value.

(继承自 ManagedCompiler)
TargetType

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

获取或设置输出文件的文件格式。Gets or sets the file format of the output file.

(继承自 ManagedCompiler)
TaskProcessTerminationTimeout

在取消任务之前等待该任务终止所需的超时。A timeout to wait for a task to terminate before killing it. 以毫秒为单位。In milliseconds.

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

项目可见属性,使用户可以指定终止任务可执行文件前留出的时间。Project visible property that allows the user to specify an amount of time after which the task executable is terminated.

(继承自 ToolTask)
ToolCanceled

用于在已取消某个工具时发出信号。Used to signal when a tool has been cancelled.

(继承自 ToolTask)
ToolExe

项目可以设置此值以重写任务的 ToolName。Projects may set this to override a task's ToolName. 任务可能会重写此内容以避免这种情况。Tasks may override this to prevent that.

(继承自 ToolTask)
ToolName

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

返回 Csc 工具的名称 (csc.exe)。Returns the name of the Csc tool (csc.exe).

ToolPath

项目可见属性允许用户替代可执行文件的路径。Project-visible property allows the user to override the path to the executable.

(继承自 ToolTask)
TreatWarningsAsErrors

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

获取或设置一个值,该值表示是否将警告视为错误。Gets or sets a value indicating whether warnings are treated as errors.

(继承自 ManagedCompiler)
UseCommandProcessor

当设置为 true 时,工具任务将为命令行创建一个批处理文件并使用命令处理器执行该文件,而不是直接执行该命令。When set to true, the tool task will create a batch file for the command-line and execute that using the command-processor, rather than executing the command directly.

(继承自 ToolTask)
UsedCommandLineTool

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

无论是否调用了命令行编译器,都将代替宿主对象编译器。Whether the command line compiler was invoked, instead of the host object compiler.

(继承自 ManagedCompiler)
UseHostCompilerIfAvailable

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

获取或设置一个布尔值,该值指示 Csc 任务是否应使用进程内编译器对象(如果可用)。Gets or sets a Boolean value that indicates whether the Csc task should use the in-process compiler object, if available.

UseNewLineSeparatorInResponseFile

当设置为 true 时,响应文件将使用新行分隔参数,而不再使用空格。When set to true, the response file will use new lines instead of spaces to separate arguments.

(继承自 ToolTaskExtension)
Utf8Output

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

获取或设置一个值,该值指示是否使用 UTF-8 编码记录编译器输出。Gets or sets a value indicating whether compiler output is logged using UTF-8 encoding.

(继承自 ManagedCompiler)
WarningLevel

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

获取或设置编译器显示的警告级别。Gets or sets the warning level for the compiler to display.

WarningsAsErrors

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

获取或设置将被视为错误的警告的列表。Gets or sets a list of warnings to treat as errors.

WarningsNotAsErrors

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

获取或设置不被视为错误的警告的列表。Gets or sets a list of warnings that are not treated as errors.

Win32Icon

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

获取或设置图标文件名。Gets or sets the icon file name.

(继承自 ManagedCompiler)
Win32Manifest

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

获取或设置 Win32 清单。Gets or sets the Win32 manifest.

(继承自 ManagedCompiler)
Win32Resource

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

获取或设置要插入到输出文件中的 Win32 资源 (.res) 文件。Gets or sets a Win32 resource (.res) file to insert in the output file.

(继承自 ManagedCompiler)
YieldDuringToolExecution

当设置为 true 时,此任务会在其任务执行时生成节点。When set to true, this task will yield the node when its task is executing.

(继承自 ToolTask)

方法

AddCommandLineCommands(CommandLineBuilderExtension)

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

生成命令行工具必须直接从命令行而不是从响应文件运行的命令行参数。Generates command line arguments that the command line tool must run directly from the command line and not from a response file.

(继承自 ManagedCompiler)
AddResponseFileCommands(CommandLineBuilderExtension)

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

使用开关和其他可存入响应文件的信息填充指定的 commandLineFills the specified commandLine parameter with switches and other information that can go into a response file.

AdjustCommandsForOperatingSystem(String)

将反斜杠替换为特定于操作系统的路径分隔符,除非反斜杠是有意添加的。Replace backslashes with OS-specific path separators, except when likely that the backslash is intentional.

(继承自 ToolTask)
CallHostObjectToExecute()

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

通过主机对象编译项目。Compiles the project through the host object.

Cancel()

通过以下方式取消正在执行任务的进程:请求该进程正常关闭,在经过短时间的等待之后,强制终止该进程。Cancels the process executing the task by asking it to close nicely, then after a short period, forcing termination.

(继承自 ToolTask)
CheckAllReferencesExistOnDisk()

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

验证所有指定的引用都存在于磁盘上。Verifies that all specified references exist on disk.

(继承自 ManagedCompiler)
CheckHostObjectSupport(String, Boolean)

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

如果宿主编译器不支持指定的参数,则记录一条消息。Logs a message if the specified parameter is not supported by the host compiler.

(继承自 ManagedCompiler)
DeleteTempFile(String)

删除临时文件。Delete temporary file. 如果删除由于某种原因而失败(例如,文件被防病毒软件锁定),则调用不会引发异常。If the delete fails for some reason (e.g. file locked by anti-virus) then the call will not throw an exception. 这时会记录一个警告,但生成不会失败。Instead a warning will be logged, but the build will not fail.

(继承自 ToolTask)
Equals(Object)

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

(继承自 Object)
Execute()

此方法使用给定参数调用该工具。This method invokes the tool with the given parameters.

(继承自 ToolTask)
ExecuteTool(String, String, String)

写出一个临时响应文件,然后通过 shell 执行请求的工具。Writes out a temporary response file and shell-executes the tool requested. 启用工具输出的并发记录。Enables concurrent logging of the output of the tool.

(继承自 ToolTask)
GenerateCommandLineCommands()

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

返回一个字符串,其中包含不能进入响应文件且必须直接转到命令行的开关和其他信息。Returns a string with those switches and other information that can't go into a response file and must go directly onto the command line. 在 ValidateParameters 和 SkipTaskExecution 之后调用Called after ValidateParameters and SkipTaskExecution

(继承自 ToolTaskExtension)
GenerateFullPathToTool()

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

返回 Csc 工具的完整文件路径。Returns the full file path of the Csc tool.

GenerateResponseFileCommands()

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

返回工具可执行文件使用的命令行开关以指定响应文件,仅在任务从 GetResponseFileCommands 返回非空字符串时调用它,在 ValidateParameters、SkipTaskExecution 和 GetResponseFileCommands 之后调用Returns the command line switch used by the tool executable to specify the response file Will only be called if the task returned a non empty string from GetResponseFileCommands Called after ValidateParameters, SkipTaskExecution and GetResponseFileCommands

(继承自 ToolTaskExtension)
GetBoolParameterWithDefault(String, Boolean)

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

哈希表中不存在值时,则获取一个布尔参数并返回默认值。Get a bool parameter and return a default if its not present in the hash table.

(继承自 ToolTaskExtension)
GetHashCode()

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

(继承自 Object)
GetIntParameterWithDefault(String, Int32)

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

哈希表中不存在值时,则获取一个 int 参数并返回默认值。Get an int parameter and return a default if its not present in the hash table.

(继承自 ToolTaskExtension)
GetProcessStartInfo(String, String, String)

初始化生成执行该工具的进程所需的信息。Initializes the information required to spawn the process executing the tool.

(继承自 ToolTask)
GetResponseFileSwitch(String)

返回工具可执行文件用来指定响应文件的命令行开关。Returns the command line switch used by the tool executable to specify the response file. 将仅在任务从 GetResponseFileCommands 返回非空字符串时调用。在 ValidateParameters、SkipTaskExecution 和 GetResponseFileCommands 之后调用Will only be called if the task returned a non empty string from GetResponseFileCommands Called after ValidateParameters, SkipTaskExecution and GetResponseFileCommands

(继承自 ToolTask)
GetType()

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

(继承自 Object)
GetWorkingDirectory()

获取要用于进程的工作目录。Gets the working directory to use for the process. 如果 ToolTask 应使用当前目录,则返回 null。Should return null if ToolTask should use the current directory.

(继承自 ToolTask)
HandleTaskExecutionErrors()

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

处理编译器的返回代码。Handles the return code from the compiler.

(继承自 ManagedCompiler)
InitializeHostObject()

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

返回一个宿主对象初始化状态值,该值指示下一项操作应该是什么操作。Returns a host object initialization status value that indicates what the next action should be.

ListHasNoDuplicateItems(ITaskItem[], String)

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

确定指定的任务参数中是否存在任何重复项。Determines if any duplicate items exist in the specified task parameter.

(继承自 ManagedCompiler)
LogEventsFromTextOutput(String, MessageImportance)

在 TaskLoggingHelper 上调用方法以解析一行文本,以查看是否存在有关规范格式的错误或警告。Calls a method on the TaskLoggingHelper to parse a single line of text to see if there are any errors or warnings in canonical format. 如有必要,可以由派生类替代。This can be overridden by the derived class if necessary.

(继承自 ToolTask)
LogPathToTool(String, String)

记录工具名称和运行路径。Logs the tool name and the path from where it is being run.

(继承自 ToolTask)
LogToolCommand(String)

记录要执行的实际命令行(或任务希望日志显示的内容)Logs the actual command line about to be executed (or what the task wants the log to show)

(继承自 ToolTask)
MemberwiseClone()

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

(继承自 Object)
ProcessStarted()

ExecuteTool(String, String, String) 中的 Start() 之后调用的可替代函数Overridable function called after Start() in ExecuteTool(String, String, String)

(继承自 ToolTask)
ResponseFileEscape(String)

用来转义响应文件的可替代方法Overridable method to escape content of the response file

(继承自 ToolTask)
SkipTaskExecution()

如果并非一定要执行任务,则返回 true。Returns true if task execution is not necessary. 在 ValidateParameters 后执行Executed after ValidateParameters

(继承自 ToolTask)
ToString()

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

(继承自 Object)
UseAlternateCommandLineToolToExecute()

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

如果在项目文件中指定备用工具名称或工具路径,则对集成开发环境 (IDE) 生成使用该工具而不是宿主编译器。If an alternate tool name or tool path was specified in the project file, then that tool is used rather than the host compiler for integrated development environment (IDE) builds.

(继承自 ManagedCompiler)
ValidateParameters()

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

验证任务参数。Validates the task parameters.

(继承自 ManagedCompiler)

适用于