BuildManager.BuildDesignTimeOutput(String) 方法

定义

) 生成一个临时可移植可执行文件,并在 XML 字符串中返回其说明 (。

public:
 System::String ^ BuildDesignTimeOutput(System::String ^ bstrOutputMoniker);
public:
 Platform::String ^ BuildDesignTimeOutput(Platform::String ^ bstrOutputMoniker);
std::wstring BuildDesignTimeOutput(std::wstring const & bstrOutputMoniker);
[System.Runtime.InteropServices.DispId(5)]
public string BuildDesignTimeOutput (string bstrOutputMoniker);
[<System.Runtime.InteropServices.DispId(5)>]
abstract member BuildDesignTimeOutput : string -> string
Public Function BuildDesignTimeOutput (bstrOutputMoniker As String) As String

参数

bstrOutputMoniker
String

必需。 要生成的临时 PE 的名字对象字符串。 名字对象字符串必须是由属性返回的字符串之一 DesignTimeOutputMonikers

返回

String

可移植可执行文件的 XML 说明遵循以下格式,其中显示了一个名为 DataSchema.cs 的自定义工具输出文件 < > < Private_binpath = "AbsoluteTemporaryOutputPath"/ > < Assembly codebase = DataSchema.cs.dll "" name = "DataSchema.cs" version = "0.0.0.0" snapshot_id = "0" 可替换 = "True"/ > < /root > ,如下所述。AttributeDescriptionprivate_binpathThe 包含临时 PE 的目录的完整路径。 此路径与属性组合在一起 codebase ,以创建临时 pe 程序集的完整路径。相对于 private_binpath 正在生成的程序集的 nameThe .NET Framework 的简单名称,临时 pe 的路径和文件名 codebaseThe。 versionThe 主版本号、次版本号、内部版本号和修订版本号。 此值始终为 "0.0.0.0" .snapshot_idAn 整数,在每次重新编译 PE 时递增。 replaceableIndicates 项目系统是否可以替换程序集,以及设计器是否不应在文件上持有写入锁。 始终设置为 true。

属性

示例

请参阅 BuildManager

注解

此方法返回的 XML 字符串指定临时 PE 文件。 设计器通过从 PE 文件加载类型来实例化类型。

适用于