BuildManager.BuildDesignTimeOutput(String) Method

Definition

Builds a temporary portable executable (PE) and returns its description in an XML string.

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

Parameters

bstrOutputMoniker
String

Required. Moniker string for the temporary PE to build. The moniker string must be one of the strings returned by the DesignTimeOutputMonikers property.

Returns

The XML description of the portable executable follows this format, shown for a custom tool output file named DataSchema.cs: Copy Code<root> <Application private_binpath = "AbsoluteTemporaryOutputPath"/> <Assembly codebase = "DataSchema.cs.dll" name = "DataSchema.cs" version = "0.0.0.0" snapshot_id = "0" replaceable = "True" /> </root>The attributes are described below.AttributeDescriptionprivate_binpathThe full path of the directory that contains the temporary PE. This path is combined with the codebase attribute to create the full path to the temporary PE assembly.codebaseThe path and file name of the temporary PE relative to the private_binpath.nameThe .NET Framework simple name of the assembly being generated. versionThe major, minor, build, and revision version numbers. The value is always "0.0.0.0".snapshot_idAn integer that is incremented each time the PE is recompiled.replaceableIndicates whether the project system can replace the assembly, and whether a designer should not hold a write lock on the file. Is always set to true.

Attributes

Examples

See BuildManager.

Remarks

The XML string returned by this method specifies the temporary PE file. A designer instantiates the types by loading them from the PE file.

Applies to