VCManagedResourceCompilerTool.ResourceFileName Property
Gets or sets the name of the intermediate .resources file generated by this tool.
Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Syntax
'Declaration
Property ResourceFileName As String
string ResourceFileName { get; set; }
property String^ ResourceFileName {
String^ get ();
void set (String^ value);
}
abstract ResourceFileName : string with get, set
function get ResourceFileName () : String
function set ResourceFileName (value : String)
Property Value
Type: String
The name of the generated intermediate .resources file.
Remarks
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.
Examples
' 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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.