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 的名稱。
備註
Common Language Runtime,要求附屬資源具有相同名稱,由其目錄差異。 例如,法文資源會有指定的這個位置,並在子目錄中名為「fr」名稱在主要輸出所在的目錄下。 因此,,即使有多個附屬 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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。