共用方式為


ClientBuildManagerParameter.StrongNameKeyFile 屬性

定義

取得或設定編譯過程中使用的金鑰檔案。

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

屬性值

String A 的 A 是金鑰檔案的值。

範例

以下程式碼範例是課程概述中範例 ClientBuildManager 的一部分。 在這個例子中,建立一個 ClientBuildManagerParameter 物件並設定其值。 最終組合檔會根據所提供的金鑰檔有強名稱,並依據提供的 PrecompilationFlags 值進行預編譯。

_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)

備註

屬性StrongNameKeyContainerStrongNameKeyFile或屬性會被賦予值以建立強命名的組裝。 建立強命名的組裝時,不需要同時設定兩個值。

適用於

另請參閱