This documentation is archived and is not being maintained.

AdditionalOptions Property

Visual Studio .NET 2003

Specifies options to add to the end of the command line immediately before the file name(s). An example is if an option is not supported in the object model.

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


The following sample code modifies the AdditionalOptions linker 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 VCMidlTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCMidlTool")
        tool.AdditionalOptions = ""
        tool.AdditionalOptions = tool.AdditionalOptions + "test"
    End Sub
End Module

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

See Also

Applies To: VCBscMakeTool Object | VCCLCompilerTool Object | VCLibrarianTool Object | VCLinkerTool Object | VCMidlTool Object | VCResourceCompilerTool Object | VCWebServiceProxyGeneratorTool Object