VCALinkTool.OutputBaseFileName 属性

获取生成的附属资源 DLL 或 DLL 的名称 (而非位置)。

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

语法

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

属性值

类型:String
生成的卫星资源 DLL的名称。

备注

公共语言运行时 (CLR),需要附属资源的名称相同,按它们区分的目录。 例如,法语资源具有指定名称,在此处子目录名为“从”的主输出所在的目录下。 因此,中,即使具有生成,的多个附属 DLL OutputBaseFileName 返回的名称始终是一个名称。

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

示例

' 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 VCConfiguration
        Dim tool As VCALinkTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCALinkTool")
        MsgBox("Output base file name: " & tool.OutputBaseFileName)
    End Sub
End Module

.NET Framework 安全性

请参阅

参考

VCALinkTool 接口

Microsoft.VisualStudio.VCProjectEngine 命名空间