Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AdditionalOptions Property
Collapse the table of content
Expand the table of content

VCCLCompilerTool::AdditionalOptions Property

Gets or sets 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.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

property String^ AdditionalOptions {
	String^ get ();
	void set (String^ value);
}

Property Value

Type: String
Options added to the end of the command line immediately before the file name(s)

The following example demonstrates how to use the EnablePREfast and AdditionalOptions properties to set the /analyze:WX- switch. (Both properties are required to do this.) Specifying /analyze:WX- means that code analysis warnings will not be treated as errors when compiling with /WX. For more information, see /analyze (Code Analysis).

To run this example, enter and run this example as outlined in How to: Compile and Run the Automation Object Model Code Examples. Then, in the new instance of Visual Studio, load a Visual C++ project and use the Add-in Manager to activate the add-in.

No code example is currently available or this language may not be supported.

Show:
© 2015 Microsoft