I have a cpp project and I have a makefile to build this project. Now I need to call the poweshell cmdlets from and for that I need to add the "System.Management.Automation.dll" reference in my makefile. but I am not aware of how to do that.
I need to understand what happens in background when we add the reference of dll by browsing and selecting the dll from visual studio.
If the .lib and .h was there then I could have used it but in this case i have dll only. so how the visual studio manage to retrieve the information from this dll.