This repository contains the source code supporting the article on https://www.coengoedegebure.com/module-initializers-in-dotnet
To get it to run, follow these steps:
-
- Build the Injector solution.
-
- Build the Coen.Utilities solution.
-
- Run the TestApplication in the Coen.Utilities solution. Note the FileNotFoundException stating that the SharpZipLib could not be found.
-
- Now run the Injector.exe on the Coen.Utilities assembly using the following parameters:
Injector.exe ModuleInitializer Initialize path/to/Coen.Utilities.dll
- Now run the Injector.exe on the Coen.Utilities assembly using the following parameters:
-
- Run the Testapplication in the Coen.Utilities again (don't rebuild, it will overwrite the Coen.Utilities). Note the tracelog stating the moduleInitializer was loaded and the zip file was created.