Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 2.05 KB

fu-name-forced-hash-using-file.md

File metadata and controls

45 lines (28 loc) · 2.05 KB
title ms.date f1_keywords helpviewer_keywords ms.assetid
/FU (Name Forced #using File)
11/04/2016
VC.Project.VCCLCompilerTool.ForcedUsingFiles
/FU
VC.Project.VCNMakeTool.ForcedUsingAssemblies
-FU compiler option [C++]
FU compiler option [C++]
/FU compiler option [C++]
698f8603-457f-435a-baff-5ac9243d6ca1

/FU (Name Forced #using File)

A compiler option that you can use as an alternative to passing a file name to #using Directive in source code.

Syntax

/FU file

Arguments

file
Specifies the metadata file to reference in this compilation.

Remarks

The /FU switch takes just one file name. To specify multiple files, use /FU with each one.

If you are using C++/CLI and are referencing metadata to use the Friend Assemblies feature, you can't use /FU. You must reference the metadata in code by using #using—together with the [as friend] attribute. Friend assemblies are not supported in Visual C++ component extensions C++/CX.

For information about how to create an assembly or module for the common language runtime (CLR), see /clr (Common Language Runtime Compilation). For information about how to build in C++/CX, see Building apps and libraries.

To set this compiler option in the Visual Studio development environment

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

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

  3. Modify the Force #using property.

To set this compiler option programmatically

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

See Also

Output-File (/F) Options
Compiler Options
Compiler Command Line Syntax