VCManagedResourceCompilerTool::ResourceFileName Property
Visual Studio 2015
Gets or sets the name of the intermediate .resources file generated by this tool.
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Designers require the value of ResourceFileName to use the following format: <RootNamespace>.<ClassName>.Resources, where <RootNamespace> is the root namespace for the project and <ClassName> is the name of the class in the associated form file. If the resources are localized, then the locale needs to be part of the name as well. For example, French resources would use <RootNamespace>.<ClassName>.fr.resources.
See How to: Compile Example Code for Project Model Extensibility for information about how to compile and run this example.
' 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("Resource file name: " & tool.ResourceFileName) End Sub End Module
Show: