VCLinkerTool.TurnOffAssemblyGeneration プロパティ

オブジェクト ファイルに共通言語ランタイム情報が格納されている場合でも、アセンブリを生成しないことを示す値を取得または設定します。

名前空間 :  Microsoft.VisualStudio.VCProjectEngine
アセンブリ :  Microsoft.VisualStudio.VCProjectEngine (Microsoft.VisualStudio.VCProjectEngine.dll 内)

構文

'宣言
Property TurnOffAssemblyGeneration As Boolean
'使用
Dim instance As VCLinkerTool
Dim value As Boolean

value = instance.TurnOffAssemblyGeneration

instance.TurnOffAssemblyGeneration = value
bool TurnOffAssemblyGeneration { get; set; }
property bool TurnOffAssemblyGeneration {
    bool get ();
    void set (bool value);
}
function get TurnOffAssemblyGeneration () : boolean
function set TurnOffAssemblyGeneration (value : boolean)

プロパティ値

型 : System.Boolean

オブジェクト ファイルに共通言語ランタイム情報が格納されている場合でも、アセンブリを生成しない場合は true、それ以外の場合は false です。

解説

TurnOffAssemblyGeneration は、/NOASSEMBLY (MSIL モジュールの作成) リンカ オプションの機能を公開します。

このサンプル コードをコンパイルして実行する方法については、「方法 : プロジェクト モデル機能拡張のプログラム例をコンパイルする」を参照してください。

[Visual Basic]

統合開発環境 (IDE) で TurnOffAssemblyGeneration プロパティを変更するサンプル コードを次に示します。

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
  Sub Test()
    Dim prj As VCProject
    Dim cfgs, tools As IVCCollection
    Dim cfg As VCConfiguration
    Dim tool As VCLinkerTool
    prj = DTE.Solution.Projects.Item(1).Object
    cfgs = prj.Configurations
    cfg = cfgs.Item(1)
    tool = cfg.Tools("VCLinkerTool")
    tool.TurnOffAssemblyGeneration = True
  End Sub
End Module

アクセス許可

  • 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

VCLinkerTool インターフェイス

VCLinkerTool メンバ

Microsoft.VisualStudio.VCProjectEngine 名前空間