/FU (Name Forced #using File) 

Gives you a compiler option alternative to passing a file name to The #using Directive in source code.

/FUfile

Arguments

  • file
    Specifies the metadata file to reference in this compilation.

Remarks

Specify one file per compiler option.

If you are referencing metadata to use the Friend Assemblies feature, you cannot use /FU; you must reference the metadata in code with #using (and the [as_friend] attribute).

See/clr (Common Language Runtime Compilation) for information on how to create an assembly or module for the common language runtime.

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. Click the C/C++ folder.

  3. Click the Advanced property page.

  4. Modify the Force #using property.

To set this compiler option programmatically

See Also

Reference

Output-File (/F) Options
Compiler Options
Setting Compiler Options