kzu / InjectModuleInitializer

Console program and nuget package to inject a module initializer method into a built .NET assembly
http://einaregilsson.com/module-initializers-in-csharp/
MIT License
97 stars 32 forks source link

Upgraded Mono.Cecil and Mono.Cecil.Pdb.dll to Latest as of 8-29-2014 #5

Closed jguady closed 8 years ago

jguady commented 10 years ago

Hoping you'll work with me on this. I'm just not sure how to get the csproj to include the assembly version and other pieces.

einaregilsson commented 10 years ago

Hi and thanks for the pull request. Is there a particular reason to add a newer version of Mono.Cecil?

jguady commented 10 years ago

A project I'm working is using Squish CoCo http://www.froglogic.com/squish/coco/ to obtain code coverage metrics, however some projects need to use your tool in order to activate the code coverage statistics. Once injected, the tests are ran using Xunit, which also uses Mono.Cecil 9.5 and we were running into version compatibility issues.

jguady commented 10 years ago

oops I clicked 'close and comment'

einaregilsson commented 10 years ago

I still don't understand why that would conflict. My tool changes an assembly slightly, but it doesn't run in process with the application, and after InjectModuleInitializer is done running there is nothing from it which should cause Mono.Cecil to load at all.