This repository accompanies Expert .NET 2.0 IL Assembler by Serge Lidin (Apress, 2006).
Download the files as a zip using the green button, or clone the repository to your machine using Git.
Release v1.0 corresponds to the code in the published book, without corrections or updates.
See the file Contributing.md for more information on how you can contribute to this repository.
Unfortunately, some of the samples are slightly outdated. They were perfectly okay for .NET 2.0, but today versions have some additional defaults so not all samples work. I've decided to improve and update these samples as I read the book.
To build all the sources you may use FAKE. First, install NuGet, then get FAKE through it:
NuGet install FAKE -Version 3.17.4 -OutputDirectory . -ExcludeVersion
It will download FAKE to the current directory. Then run FAKE:
FAKE\tools\FAKE.exe build.fsx
To execute ilasm you'll need it in PATH environment variable. One simple way pf providing it is installing the
PowerShell Community Extensions and running Import-VisualStudioVars 2013 from PowerShell
Prompt before running the FAKE. Another way is running the FAKE from the Visual Studio Command Prompt.
There is a simple PowerShell script Build.ps1 for downloading FAKE and running the build.
