ClientBuildManagerParameter.StrongNameKeyFile Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.