ClientBuildManagerParameter.StrongNameKeyFile Property

Definition

Gets or sets the key file used during compilation.

public:
 property System::String ^ StrongNameKeyFile { System::String ^ get(); void set(System::String ^ value); };
public string StrongNameKeyFile { get; set; }
member this.StrongNameKeyFile : string with get, set
Public Property StrongNameKeyFile As String

Property Value

A String of the value for the key file.

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

Either the StrongNameKeyContainer property or the StrongNameKeyFile property is assigned a value to create a strong-named assembly. Both values do not need to be set to create a strong-named assembly.

Applies to

See also