Condividi tramite


Proprietà VCCLCompilerTool.ObjectFile

Ottiene o imposta un nome per eseguire l'override del nome del file oggetto predefinito.ObjectFile espone la funzionalità del compilatore /Fo (Nome file oggetto) opzione.

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

Sintassi

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

Valore proprietà

Tipo: System.String
Un nome per eseguire l'override del nome del file oggetto predefinito.

Esempi

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

Nell'esempio seguente viene modificato ObjectFile proprietà nell'ambiente di sviluppo (IDE) 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 VCCLCompilerTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCCLCompilerTool")
        tool.ObjectFile = "$(IntDir)/MyFile"
    End Sub
End Module

Sicurezza di .NET Framework

Vedere anche

Riferimenti

VCCLCompilerTool Interfaccia

Spazio dei nomi Microsoft.VisualStudio.VCProjectEngine