I've got the following problem:
I have native C-Code as .api which needs to be extended by some function definitions to adapt it to our functionality. I can adapt it with C code compile it in a VS-Solution, works!
Now I want to call C# code from above mentioned C-Code. Thus I did:
[native C with extensions] --> [manged C++] --> [C#]
That works also.
Question: How can I reduce the number of assemblies?
What I found up to now:
- Compile native C with option as CLR, didn't work because native code crashes.
- Merge managed C++ and C# with ILMerge (as post-build action)
Reason: For security reasons we want to encrypt as many parts as possible. Thus best would be one .exe.