dotnet / ILMerge

ILMerge is a static linker for .NET Assemblies.
MIT License
1.23k stars 170 forks source link

C# exception filters are corrupted #19

Closed sunahe closed 4 years ago

sunahe commented 7 years ago

Try to run ILMerge on a project that contains C# exception filters: https://github.com/sunahe/TestExceptionFilters

Run the processed file.

Result: Unhandled Exception: System.InvalidProgramException: Common Language Runtime detected an invalid program. at TestExceptionFilters.Program.Main(String[] args)

mike-barnett commented 7 years ago

Thanks for the great repo! That made it super easy to track down and fix. Fixed by commit 0528aaa.