Export (0) Print
Expand All
Expand Minimize

AddModuleNamesToAssembly Property

Visual Studio .NET 2003

Import the specified nonassembly file into the final output. Exposes the functionality of the /ASSEMBLYMODULE linker option.

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

Example

The following sample code modifies the AddModuleNamesToAssembly property in the development environment:

' 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.AddModuleNamesToAssembly = "c:\some.dll"
  End Sub
End Module

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

See Also

Applies To: VCLinkerTool Object

Show:
© 2014 Microsoft