Export (0) Print
Expand All

/filealign (Specify Section Alignment)

/filealign:number

where:

number
A value that specifies the size of sections in the output file. Valid values are 512, 1024, 2048, 4096, and 8192. These values are in bytes.

Remarks

The /filealign option lets you specify the size of sections in your output file.

Each section will be aligned on a boundary that is a multiple of the /filealign value. There is no fixed default. If /filealign is not specified, the common language runtime picks a default at compile time.

By specifying the section size, you affect the size of the output file. Modifying section size may be useful for programs that will run on smaller devices.

Use DUMPBIN to see information about sections in your output file.

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Setting Visual C# Project Properties.
  2. Click the Configuration Properties folder.
  3. Click the Advanced property page.
  4. Modify the File Alignment property.

To set this compiler option programmatically

See FileAlignment Property.

See Also

C# Compiler Options

Show:
© 2015 Microsoft