BuildManager.BuildDesignTimeOutput 方法

生成临时可移植可执行文件 (PE) 并以 XML 字符串格式返回关于该文件的说明。

命名空间:  VSLangProj
程序集:  VSLangProj(在 VSLangProj.dll 中)

语法

声明
Function BuildDesignTimeOutput ( _
    bstrOutputMoniker As String _
) As String
string BuildDesignTimeOutput(
    string bstrOutputMoniker
)
String^ BuildDesignTimeOutput(
    [InAttribute] String^ bstrOutputMoniker
)
abstract BuildDesignTimeOutput : 
        bstrOutputMoniker:string -> string
function BuildDesignTimeOutput(
    bstrOutputMoniker : String
) : String

参数

  • bstrOutputMoniker
    类型:String

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

返回值

类型:String
可移植可执行文件的 XML 说明遵循下面为名为 DataSchema.cs 的自定义工具输出文件显示的格式:

<root>
  <Application private_binpath = "AbsoluteTemporaryOutputPath"/>
  <Assembly
    codebase = "DataSchema.cs.dll"
    name = "DataSchema.cs"
    version = "0.0.0.0"
    snapshot_id = "0"
    replaceable = "True"
  />
</root>

下表描述了属性。

特性

说明

"PRIVATE_BINPATH"

包含临时 PE 的目录的完整路径。此路径与 codebase 属性组合以创建临时 PE 程序集的完整路径。

codeBase

临时 PE 相对于 private_binpath 的路径和文件名。

name

正在生成的程序集的 .NET Framework 简单名称。

version

主版本、次版本、内部版本和修订版本的版本号。该值始终为“0.0.0.0”。

snapshot_id

每次重新编译 PE 时增加的一个整数。

replaceable

指示项目系统是否可以替换程序集,以及设计器是否不应对文件保持写入锁定。始终设置为 true。

备注

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

示例

请参见BuildManager

.NET Framework 安全性

请参阅

参考

BuildManager 接口

VSLangProj 命名空间