MarkupCompilePass1 类
定义
实现 MarkupCompilePass1 任务。Implements the MarkupCompilePass1 task. 使用项目文件中的 MarkupCompilePass1 元素创建和执行此任务。Use the MarkupCompilePass1 element in your project file to create and execute this task. 有关用法和参数信息,请参阅 MarkupCompilePass1。For usage and parameter information, see MarkupCompilePass1.
此 API 支持产品基础结构,不能在代码中直接使用。
public ref class MarkupCompilePass1 sealed : Microsoft::Build::Utilities::Task
public sealed class MarkupCompilePass1 : Microsoft.Build.Utilities.Task
type MarkupCompilePass1 = class
inherit Task
Public NotInheritable Class MarkupCompilePass1
Inherits Task
- 继承
构造函数
| MarkupCompilePass1() |
此 API 支持产品基础结构,不能在代码中直接使用。 初始化 MarkupCompilePass1 类的新实例。Initializes a new instance of the MarkupCompilePass1 class. |
属性
| AllGeneratedFiles |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置由标记编译器生成的文件列表。Gets or sets a list of files that are generated by the markup compiler. |
| AlwaysCompileMarkupFilesInSeparateDomain |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置指示是否在第二个应用程序域中运行编译的值。Gets or sets a value that indicates whether to run the compilation in second application domain. |
| ApplicationMarkup |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置应用程序定义 XAML 文件的名称。Gets or sets the name of the application definition XAML file. |
| AssembliesGeneratedDuringBuild |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置在生成周期中更改的引用程序集列表。Gets or sets a list of reference assemblies that change during the build cycle. |
| AssemblyName |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置包含此项目将生成的程序集的缩写名称。Gets or sets the short name of assembly that will be generated for this project. |
| AssemblyPublicKeyToken |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置程序集的公钥标记。Gets or sets the public key token of the assembly. |
| AssemblyVersion |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置程序集的版本。Gets or sets the version of the assembly. |
| 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) |
| ContentFiles |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置稀疏内容文件列表。Gets or sets a list of loose content files. |
| DefineConstants |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置指定是否保留 DefineConstants 的当前值的值。Gets or sets a value that specifies whether the current value of DefineConstants is kept. |
| ExtraBuildControlFiles |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置控制 MarkupCompilePass1 任务返回时是否触发重新生成的文件列表;某个文件更改时触发重新生成。Gets or sets a list of files that control whether a rebuild is triggered when the MarkupCompilePass1 task reruns; a rebuild is triggered if one of these files changes. |
| GeneratedBamlFiles |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置生成的二元 XAML (BAML) 文件。Gets or sets the generated binary XAML (BAML) files. |
| GeneratedCodeFiles |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置生成的托管代码文件列表。Gets or sets the list of generated managed code files. |
| GeneratedLocalizationFiles |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置每个可本地化的 XAML 文件的生成的本地化文件。Gets or sets the generated localization file for each localizable XAML file. |
| 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) |
| HostInBrowser |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置一个值,该值指示生成的程序集是否为 XAML 浏览器应用程序 (XBAP) 。Gets or sets a value that indicates whether the generated assembly is a XAML browser application (XBAP). |
| HostObject |
如果主机 IDE 具有与此特定任务关联的主机对象,则生成引擎会设置此属性。The build engine sets this property if the host IDE has associated a host object with this particular task. (继承自 Task) |
| IsRunningInVisualStudio |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置一个值,该值指示任务是否在 Visual Studio 中运行。Gets or sets a value that indicates whether the task is running in Visual Studio. |
| KnownReferencePaths |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置生成过程中不更改的引用程序集的路径。Gets or sets the paths of referenced assemblies that do not change during the build procedure. |
| Language |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置编译器支持的托管语言。Gets or sets the managed language that the compiler supports. |
| LanguageSourceExtension |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置追加到所生成的托管代码文件扩展名的扩展名。Gets or sets the extension that is appended to the extension of the generated managed code file. |
| LocalizationDirectivesToLocFile |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置一个值,该值指定如何为每个 Extensible Application Markup Language (XAML) 文件生成本地化信息。Gets or sets a value that specifies how to generate localization information for each Extensible Application Markup Language (XAML) file. |
| Log |
获取包含任务记录方法的 TaskLoggingHelper 类的实例。Gets an instance of a TaskLoggingHelper class containing task logging methods. taskLoggingHelper 是一个 MarshallByRef 对象,如果父任务正在创建 appdomain 并将该对象封送到其中,则该对象需要调用 MarkAsInactive。The taskLoggingHelper is a MarshallByRef object which needs to have MarkAsInactive called if the parent task is making the appdomain and marshaling this object into it. 如果在任务执行结束时未卸载 appdomain,并且未调用 MarkAsInactive 方法,则将导致在其中创建任务的 appdomain 中的任务实例泄漏。If the appdomain is not unloaded at the end of the task execution and the MarkAsInactive method is not called this will result in a leak of the task instances in the appdomain the task was created within. (继承自 Task) |
| OutputPath |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置生成代码文件的位置。Gets or sets the location of generated code files. |
| OutputType |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置输出程序集的类型。Gets or sets the output type of the assembly. |
| PageMarkup |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置要处理的 XAML 文件的列表。Gets or sets a list of XAML files to process. |
| References |
此 API 支持产品基础结构,不能在代码中直接使用。 设置或获取程序集引用。Gets or sets the assembly references. |
| RequirePass2ForMainAssembly |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置一个值,该值指示项目是否包含不可本地化的 XAML 文件,这些文件引用嵌入到主程序集中的本地类型。Gets or sets a value that indicates whether the project contains non-localizable XAML files that reference local types that are embedded into the main assembly. |
| RequirePass2ForSatelliteAssembly |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置一个值,该值指示项目是否包含可本地化的 XAML 文件,这些文件引用嵌入在附属程序集中的本地类型。Gets or sets a value that indicates whether the project contains localizable XAML files that reference local types that are embedded in the satellite assembly. |
| RootNamespace |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置项目的种类的根命名空间。Gets or sets the root namespace of the classes inside the project. |
| SourceCodeFiles |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置当前项目的源代码文件列表。Gets or sets the source code file list for the current project. |
| SplashScreen |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置与在应用程序初始化之前显示的初始屏幕图像。Gets or sets the splash screen image to be displayed before application initialization. |
| 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) |
| UICulture |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置一个值,该值指定哪个区域性附属程序集将包含生成的二进制 XAML (BAML) 文件。Gets or sets a value that specifies which culture satellite assembly will hold the generated binary XAML (BAML) files. |
| XamlDebuggingInformation |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置一个值,该值指示是否生成诊断信息并将其包括在编译的 XAML 中以帮助调试。Gets or sets a value that indicates whether diagnostic information is generated and included in the compiled XAML in order to aid debugging. |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| Execute() |
此 API 支持产品基础结构,不能在代码中直接使用。 执行任务。Executes a task. |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets 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) |