次の方法で共有


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

次のコード例は、クラスの概要に記載されているコード例の 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)

注釈

StrongNameKeyContainerプロパティまたは プロパティに値がStrongNameKeyFile割り当てられ、厳密な名前付きアセンブリが作成されます。 厳密な名前付きアセンブリを作成するために、両方の値を設定する必要はありません。

適用対象

こちらもご覧ください