dotnet / ILMerge

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

Can this work on C++ /clr assemblies to combine c# dependencies? #82

Open AraHaan opened 4 years ago

AraHaan commented 4 years ago

I would like to know this because I got a c++ /clr plugin to a pure c++ exe program that has it's own plugin interface. The plugin basically then allows plugins to be made using c#. However any and all C# code would have to be merged in with the base c++ /clr code and outputted as the original file name as the file that was before made in just C#. This basically would be how it would actually be able to work.

And so basically, somehow I got to look and see if dependencies are not in the GAC, and then if not, combine them in to avoid causing the pure c++ exe program from crashing miserably.

mike-barnett commented 4 years ago

Sorry, but ILMerge is unable to merge anything other than fully managed assemblies. As far as I know, the C++/CLR assemblies contain lots of unmanaged goo so ILMerge would be unable to include such an assembly into its output, merged, assembly.