title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
/AI (Specify Metadata Directories) |
11/04/2016 |
|
|
fb9c1846-504c-4a3b-bb39-c8696de32f6f |
Specifies a directory that the compiler will search to resolve file references passed to the #using
directive.
/AIdirectory
directory
The directory or path for the compiler to search.
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.
-
Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
-
Select the Configuration Properties > C/C++ > General property page.
-
Modify the Additional #using Directories property.
- See xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.AdditionalUsingDirectories%2A.
MSVC Compiler Options
MSVC Compiler Command-Line Syntax
#using Directive