VCManagedResourceCompilerTool.OutputFileName 属性

获取此 .resx 文件错误引起最终输出文件的名称。

命名空间:  Microsoft.VisualStudio.VCProjectEngine
程序集:  Microsoft.VisualStudio.VCProjectEngine(在 Microsoft.VisualStudio.VCProjectEngine.dll 中)

语法

声明
ReadOnly Property OutputFileName As String
string OutputFileName { get; }
property String^ OutputFileName {
    String^ get ();
}
abstract OutputFileName : string with get
function get OutputFileName () : String

属性值

类型:System.String
表示最终输出文件名称的字符串。

备注

有关如何编译和运行此示例的信息,请参见 如何:编译项目模型扩展性示例代码

示例

' 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

.NET Framework 安全性

请参见

参考

VCManagedResourceCompilerTool 接口

Microsoft.VisualStudio.VCProjectEngine 命名空间