/baseaddress (C# Compiler Options)
Visual Studio 2010
The /baseaddress option lets you specify the preferred base address at which to load a DLL. For more information about when and why to use this option, see Improving Application Startup Time and Larry Osterman's WebLog.
/baseaddress:address
The default base address for a DLL is set by the .NET Framework common language runtime.
Be aware that the lower-order word in this address will be rounded. For example, if you specify 0x11110001, it will be rounded to 0x11110000.
To complete the signing process for a DLL, use SN.EXE with the -R option.
To set this compiler option in the Visual Studio development environment
-
Open the project's Properties page.
-
Click the Build property page.
-
Click the Advanced button.
-
Modify the DLL Base Address property.
To set this compiler option programmatically, see BaseAddress.
Can I specify the base address of a c# project in a separate file
It is currently possible to define the base address of a c++ project in a file, and refer this file in the project's linker properties
(see here: http://msdn.microsoft.com/en-us/library/f7f5138s.aspx)
Is it possible to do the same for c# projects?
When I try to enter a filename in the corresponding setting of a c# project, I got the following error:
"BaseAddress: Base address must be a hexadecimal number with less than or equal to 8 digits, for example, 0x11000000."
Could this documentation be a bit more elaborate on this?
(see here: http://msdn.microsoft.com/en-us/library/f7f5138s.aspx)
Is it possible to do the same for c# projects?
When I try to enter a filename in the corresponding setting of a c# project, I got the following error:
"BaseAddress: Base address must be a hexadecimal number with less than or equal to 8 digits, for example, 0x11000000."
Could this documentation be a bit more elaborate on this?
- 1/9/2012
- Reureu