Partager via


VCManagedResourceCompilerTool.OutputFileName, propriété

Obtient le nom du fichier de sortie final auquel contribue ce fichier .resx.

Espace de noms :  Microsoft.VisualStudio.VCProjectEngine
Assembly :  Microsoft.VisualStudio.VCProjectEngine (dans Microsoft.VisualStudio.VCProjectEngine.dll)

Syntaxe

'Déclaration
ReadOnly Property OutputFileName As String
string OutputFileName { get; }
property String^ OutputFileName {
    String^ get ();
}
abstract OutputFileName : string with get
function get OutputFileName () : String

Valeur de propriété

Type : String
Chaîne représentant le nom du fichier de sortie final.

Notes

Consultez Comment : compiler l'exemple de code pour l'extensibilité du modèle de projet pour savoir comment compiler et exécuter cet exemple.

Exemples

' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCFileConfiguration
        Dim tool As VCManagedResourceCompilerTool
        Dim file As VCFile
        prj = DTE.Solution.Projects.Item(1).Object
        file = prj.Files("Form1.resx")
        cfgs = file.FileConfigurations
        cfg = cfgs.Item(1)
        tool = cfg.Tool
        MsgBox("Output file name: " & tool.OutputFileName)
    End Sub
End Module

Sécurité .NET Framework

Voir aussi

Référence

VCManagedResourceCompilerTool Interface

Microsoft.VisualStudio.VCProjectEngine, espace de noms