Szerkesztés

Megosztás a következőn keresztül:


ClientBuildManagerParameter.PrecompilationFlags Property

Definition

Gets or sets the flags that determine precompilation behavior.

public:
 property System::Web::Compilation::PrecompilationFlags PrecompilationFlags { System::Web::Compilation::PrecompilationFlags get(); void set(System::Web::Compilation::PrecompilationFlags value); };
public System.Web.Compilation.PrecompilationFlags PrecompilationFlags { get; set; }
member this.PrecompilationFlags : System.Web.Compilation.PrecompilationFlags with get, set
Public Property PrecompilationFlags As PrecompilationFlags

Property Value

The PrecompilationFlags for a client build.

Examples

The following code example is part of a code example found in the ClientBuildManager class overview. In the example, a ClientBuildManagerParameter object is created and its values set. The resulting assembly will have a strong name based on the provided key file and will precompile according to the provided PrecompilationFlags values.

_cbmParameter = new ClientBuildManagerParameter();
_cbmParameter.PrecompilationFlags = _flags;
_cbmParameter.StrongNameKeyFile = _keyFile;

builder = new
        ClientBuildManager(_vPath, _pPath, _tPath, _cbmParameter);
_cbmParameter = New ClientBuildManagerParameter()
_cbmParameter.PrecompilationFlags = _flags
_cbmParameter.StrongNameKeyFile = _keyFile

builder = New ClientBuildManager(_vPath, _pPath, _tPath, _cbmParameter)

Remarks

The PrecompilationFlags property determines how the assembly will be built. For example, you can set PrecompilationFlags to Clean to recompile any previously compiled components, or set it to OverwriteTarget to permit the resulting assembly to overwrite any components in the target directory. The PrecompilationFlags enumerator has a FlagsAttribute attribute that allows a bitwise combination of its member values. The PrecompilationFlags property can contain more than one value from the PrecompilationFlags enumeration to specify a combination of precompilation behaviors.

Applies to

See also