Export (0) Print
Expand All
Expand Minimize
0 out of 3 rated this helpful - Rate this topic

/AI (Specify Metadata Directories)

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.

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.

  2. In the navigation pane, select Configuration Properties, C/C++, General.

  3. Modify the Additional #using Directories property.

To set this compiler option programmatically

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.