Can object files be added to a Visual Studio project for linking? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can object files be added to a Visual Studio project for linking?

I need to link two object files (one compiled c file and one assembled assembly file) with my current Visual Studio C# WPF App project. How should I do this? Is there a way to specify additional object files in Visual Studio that will link whenever the project is built?

4th Nov 2018, 3:32 PM
Clayton Cockrell
Clayton Cockrell - avatar
1 Answer
+ 1
I think you need to put the C code in a dll And import the dll in c# with "Add reference" https://www.codeproject.com/Articles/9826/How-to-create-a-DLL-library-in-C-and-then-use-it-w
5th Nov 2018, 8:38 PM
sneeze
sneeze - avatar