This documentation is archived and is not being maintained.

VCLinkerTool.AdditionalLibraryDirectories Property 

Gets or sets one or more additional paths (configuration specific) to search for libraries.

Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in microsoft.visualstudio.vcprojectengine.dll)

property String^ AdditionalLibraryDirectories {
	String^ get ();
	void set ([InAttribute] String^ LibPath);
/** @property */
String get_AdditionalLibraryDirectories ()

/** @property */
void set_AdditionalLibraryDirectories (/** @attribute InAttribute() */ String LibPath)

function get AdditionalLibraryDirectories () : String

function set AdditionalLibraryDirectories (LibPath : String)

Property Value

A string representing the path name.

AdditionalLibraryDirectories exposes the functionality of the linker's /LIBPATH option and the librarian's /LIBPATH option.

An example of a valid path name is "c:\additionaldirs." Use semicolons to delimit a list of more than one path.

See Samples for Project Model Extensibility for information about how to compile and run this example.

The following example modifies the linker's AdditionalLibraryDirectories property in the integrated development environment (IDE):

' Macro code.
' Before running, load a Visual C++ project and add a reference to 
' Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports EnvDTE80
Imports System.Diagnostics
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")
        MsgBox("Additional Lib Directory: " & _
        tool.AdditionalLibraryDirectories = "c:\temp"
        MsgBox("Additional Lib Directory: " & _
    End Sub
End Module