AdditionalDependencies Property
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

AdditionalDependencies Property

Visual Studio .NET 2003

Specifies additional, configuration-specific items to add to the link line, such as comdlg32.lib or kernel32.lib.

[Visual Basic .NET]
Public Property AdditionalDependencies() As String
[Visual Basic 6]
Property Get AdditionalDependencies() As String
Property Let AdditionalDependencies( _
   ByVal NewValue As String _
HRESULT __stdcall get_AdditionalDependencies(
   /* [out, retval] */ BSTR* retVal
HRESULT __stdcall put_AdditionalDependencies(
   /* [in] */ BSTR NewValue
public string AdditionalDependencies {get; set;}
[JScript .NET]
public function get AdditionalDependencies() : String
public function set AdditionalDependencies(
   NewValue : String


See .lib Files as Linker Input for more information.


The following sample code modifies the AdditionalDependencies property in the Input property page of the Linker folder in a project's Property Pages dialog box.

' 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
        Dim oldDeps As String
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCLinkerTool")
        oldDeps = tool.AdditionalDependencies
        tool.AdditionalDependencies = oldDeps + " myfile.lib"
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCCustomBuildTool Object | VCLibrarianTool Object | VCLinkerTool Object

© 2016 Microsoft