Visual Basic Compiler Options  

/baseaddress

Specifies a default base address when creating a DLL.

/baseaddress:address

Arguments

address
Required. The base address for the DLL. This address must be specified as a hexadecimal number.

Remarks

The default base address for a DLL is set by the .NET Framework.

Be aware that the lower-order word in this address is rounded. For example, if you specify 0x11110001, it is rounded to 0x11110000.

To complete the signing process for a DLL, use the –R option of the Strong Naming tool (Sn.exe).

This option is ignored if the target is not a DLL.

To set /baseaddress in the Visual Studio integrated development environment

  1. Open the project's Property Pages dialog box. For details, see <Projectname> Property Pages Dialog Box.
  2. Click the Configuration Properties folder.
  3. Click the Optimizations property page.
  4. Modify the DLL base address property.

To set /baseaddress programmatically

See Also

Visual Basic Compiler Options | /target | Sample Compilation Command Lines