Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.88 KB

ai-specify-metadata-directories.md

File metadata and controls

42 lines (27 loc) · 1.88 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: /AI (Specify Metadata Directories)
/AI (Specify Metadata Directories)
11/04/2016
VC.Project.VCCLCompilerTool.AdditionalUsingDirectories
VC.Project.VCNMakeTool.AssemblySearchPath
/AI
VC.Project.VCCLWCECompilerTool.AdditionalUsingDirectories
/AI compiler option [C++]
AI compiler option [C++]
-AI compiler option [C++]
fb9c1846-504c-4a3b-bb39-c8696de32f6f

/AI (Specify Metadata Directories)

Specifies a directory that the compiler will search to resolve file references passed to the #using directive.

Syntax

/AIdirectory

Arguments

directory
The directory or path for the compiler to search.

Remarks

Only one directory can be passed to an /AI invocation. Specify one /AI option for each path you want the compiler to search. For example, to add both C:\Project\Meta and C:\Common\Meta to the compiler search path for #using directives, add /AI"C:\Project\Meta" /AI"C:\Common\Meta" to the compiler command line or add each directory to the Additional #using Directories property in Visual Studio.

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.

  2. Select the Configuration Properties > C/C++ > General property page.

  3. Modify the Additional #using Directories property.

To set this compiler option programmatically

  • See xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.AdditionalUsingDirectories%2A.

See also

MSVC Compiler Options
MSVC Compiler Command-Line Syntax
#using Directive