Statically linking a C++ library to a C# process using CLI or any other way
问题 Is it possible to take a static library written in C++ and somehow integrate it into a .NET process in a way that the .NET process will be integrated with the lib into one exe file? What I mean is that I know I can invoke a c++ DLL from within a C# process but the user will still have to have the C++ DLL, but is it possible to use a lib instead of a DLL?(this way the user won't even know that the exe uses my library). and if it is possible, how? 回答1: Unique among other managed languages, C++