共用方式為


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

屬性值

型別:System.String
產生的附屬資源 DLL 的名稱。

備註

公用語言執行時間,這需要附屬資源具有相同的名稱,其目錄來區別。比方說,法文的資源會有下面指定的名稱,而且是在名為 「 fr 」,在 [主要輸出所在的目錄下的子目錄中。名稱由所傳回的結果是, OutputBaseFileName一定是單一的名稱,即使有多個附屬 Dll 所產生。

如需如何編譯與執行此範例的詳細資訊,請參閱HOW TO:編譯專案模型擴充性的範例程式碼

範例

' 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 命名空間