Freigeben über


VCResourceCompilerTool.ResourceOutputFileName-Eigenschaft

Ruft den Namen der Ressourcendatei ab oder legt diesen fest.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Syntax

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

Eigenschaftswert

Typ: System.String
Der Name der Ressourcendatei.

Hinweise

ResourceOutputFileName macht die /fo- - Option des Ressourcencompilers verfügbar.

Beispiele

Siehe Gewusst wie: Kompilieren von Beispielcode für die Erweiterbarkeit von Projektmodellen Informationen zu, wie dieses Beispiel kompiliert und ausgeführt wird.

Im folgenden Beispiel ändert die - Eigenschaft ResourceOutputFileName in der integrierten Entwicklungsumgebung (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 VCResourceCompilerTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCResourceCompilerTool")
        tool.ResourceOutputFileName = "$(IntDir)/somefile.res"
    End Sub
End Module

.NET Framework-Sicherheit

Siehe auch

Referenz

VCResourceCompilerTool Schnittstelle

Microsoft.VisualStudio.VCProjectEngine-Namespace