|
|
Compiling
You can compile ELMAH from the sources in one of three ways:
- Ineractivley, using solution and project files supplied for the various Microsoft Visual Studio versions.
- Using a batch script that requires Microsoft Visual Studio for compilation.
- Using a batch script that uses only the Visual C# compiler for compilation (i.e. Microsoft Visual Studio is not required).
Compiling Interactively Using Microsoft Visual Studio
Use Microsoft Visual Studio solutions found under the src/vs directory. There are solution and project files supplied for Microsoft Visual Studio .NET 2002, Microsoft Visual Studio .NET 2003 and Microsoft Visual Studio 2005 under respective sub-directories.
Batch Compiling Using Microsoft Visual Studio
The src/vs/build.cmd script launches Microsoft Visual Studio to compile each solution from the command-line. The batch script detects the versions installed on your system and builds only using those versions that are found to be installed. The detection is very simple. It expects to find the various Microsoft Visual Studio versions to be installed in their known default locations. If you supplied a custom path during installation, you may have to adjust the script accordingly.
For .NET Framework 2.0, however, only msbuild.exe and the runtime is needed. Microsoft Visual Studio 2005 is not required for compiling.
Batch Compiling Using C# Compiler
The build.cmd in the root of the distribution uses the Visual C# compiler to compile the sources. The script takes a single argument of that specifies the .NET Framework runtime to target. You can specify all, 1.0, 1.1, or 2.0. Running the script without any arguments display the usage, as shown in the following example:
Usage: build TARGET
TARGET
is the target to build (all, 1.0, 1.1, or 2.0)
This is a batch script that can used to build ELMAH binaries for
Microsoft .NET Framework 1.x and 2.0. The binaries are created for
only those versions that are found to be installed in the expected
locations on the local machine.
The following versions appear to be installed on this system:
- v1.1.4322
- v2.0.50727
Sign in to add a comment
