Condividi tramite


Proprietà VCLinkerTool.MidlCommandFile

Specifica un file di risposta per i comandi MIDL da utilizzare.

Spazio dei nomi:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Sintassi

'Dichiarazione
Property MidlCommandFile As String
string MidlCommandFile { get; set; }
property String^ MidlCommandFile {
    String^ get ();
    void set (String^ value);
}
abstract MidlCommandFile : string with get, set
function get MidlCommandFile () : String
function set MidlCommandFile (value : String)

Valore proprietà

Tipo: System.String
Stringa che rappresenta il nome del file di risposta.

Note

L'oggetto MidlCommandFile espone la funzionalità dell'opzione del linker /MIDL (Specifica opzioni della riga di comando MIDL).

MidlCommandFile può essere utilizzato per specificare comandi posizionare in un file di risposta.

Vedere Procedura: compilare codice di esempio per l'Extensibility del modello di progetto per informazioni su come compilare ed eseguire l'esempio.

Esempi

Nell'esempio riportato di seguito la proprietà MidlCommandFile nell'ambiente di sviluppo integrato (IDE):

' 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.MidlCommandFile = "c:\a.rsp"
  End Sub
End Module

Sicurezza di .NET Framework

Vedere anche

Riferimenti

VCLinkerTool Interfaccia

Spazio dei nomi Microsoft.VisualStudio.VCProjectEngine