次の方法で共有


VCCLCompilerTool.AssemblerOutput プロパティ

アセンブリ言語の出力ファイルの内容を取得または設定します。 AssemblerOutput は、コンパイラの /FA、/Fa (リスティング ファイル) オプションの機能を公開します。

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

構文

'宣言
Property AssemblerOutput As asmListingOption
    Get
    Set
asmListingOption AssemblerOutput { get; set; }
property asmListingOption AssemblerOutput {
    asmListingOption get ();
    void set (asmListingOption value);
}
abstract AssemblerOutput : asmListingOption with get, set
function get AssemblerOutput () : asmListingOption
function set AssemblerOutput (value : asmListingOption)

プロパティ値

型: Microsoft.VisualStudio.VCProjectEngine.asmListingOption
asmListingOption 列挙型。

解説

このプロパティの値を変更するには、asmListingOption 列挙型を使用します。

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

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

' 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 VCCLCompilerTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCCLCompilerTool")
        tool.AssemblerOutput = asmListingOption.asmListingAsmSrc
    End Sub
End Module

.NET Framework セキュリティ

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

参照

参照

VCCLCompilerTool インターフェイス

Microsoft.VisualStudio.VCProjectEngine 名前空間