Home compiling C code and C# code both into .NET DLL
Reply: 0

compiling C code and C# code both into .NET DLL

user899 Published in March 18, 2018, 2:02 am

This question already has an answer here:

  • Embedding unmanaged dll into a managed C# dll 5 answers

I have a C# .NET DLL (call it CS_Code.dll) which is using

[DllImport("C_Code.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]

C_Code.dll contains mainly C code in extern "C" clauses.

When I will be using this assembly (CS_Code.dll) later in a project. I want to save from having to deliver two DLLs. All should be in one DLL.

Would it be possible to include (compile) the C-code into the .NET (e.g. as a library) making one .NET DLL out of it?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.299703 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO