VCALinkTool.OutputBaseFileName 属性

定义

获取 (的名称,但不是生成的附属资源 DLL 或 DLL 的位置) 。

public:
 property System::String ^ OutputBaseFileName { System::String ^ get(); };
public:
 property Platform::String ^ OutputBaseFileName { Platform::String ^ get(); };
[System.Runtime.InteropServices.DispId(4)]
public string OutputBaseFileName { [System.Runtime.InteropServices.DispId(4)] get; }
[<System.Runtime.InteropServices.DispId(4)>]
[<get: System.Runtime.InteropServices.DispId(4)>]
member this.OutputBaseFileName : string
Public ReadOnly Property OutputBaseFileName As String

属性值

String

生成的附属资源 DLL 的名称。

属性

示例

' 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  

注解

公共语言运行时(要求附属资源具有相同的名称)可通过其目录来区分。 例如,法语资源的名称应在此处指定,并且位于主输出所在的目录下的子目录中。 因此,返回的名称 OutputBaseFileName 始终是单个名称,即使正在生成多个附属 dll 时也是如此。

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

适用于