Aracılığıyla paylaş


VCLinkerTool.GenerateMapFile Özellik

Alır veya eşleme dosyası bağlama sırasında oluşturulan olup olmadığını gösteren bir değeri ayarlar.

Ad alanı:  Microsoft.VisualStudio.VCProjectEngine
Derleme:  Microsoft.VisualStudio.VCProjectEngine (Microsoft.VisualStudio.VCProjectEngine.dll içinde)

Sözdizimi

'Bildirim
Property GenerateMapFile As Boolean
bool GenerateMapFile { get; set; }
property bool GenerateMapFile {
    bool get ();
    void set (bool value);
}
abstract GenerateMapFile : bool with get, set
function get GenerateMapFile () : boolean 
function set GenerateMapFile (value : boolean)

Özellik Değeri

Tür: Boolean
true eşleme dosyası oluşturulursa; Aksi takdirde, false.

Notlar

GenerateMapFileişlevselliği sunan /MAP (Eşlem Dosyası Oluştur) bağlayıcı seçeneği.

MapFileNamebir mapfile oluşturur ve mapfile adını belirtmenizi sağlar.

Bkz: Nasıl yapılır: Proje Modeli Genişletilebilirliği için Örnek Kod Derleme derlemek ve bu örnek çalıştırmak nasıl öğrenmek için.

Örnekler

Aşağıdaki örnek değiştirir GenerateMapFile özelliği, tümleşik geliştirme ortamında (IDE):

' add reference to Microsoft.VisualStudio.VCProjectEngine
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 VCLinkerTool
    prj = DTE.Solution.Projects.Item(1).Object
    cfgs = prj.Configurations
    cfg = cfgs.Item(1)
    tool = cfg.Tools("VCLinkerTool")
    tool.GenerateMapFile = True
  End Sub
End Module

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

VCLinkerTool Arabirim

Microsoft.VisualStudio.VCProjectEngine Ad Alanı