I've downloaded a charting library called NPlot and I have no idea how to add it as a reference in a GTK# application I'm currently making in MonoDevelop. There is no option in the Edit References window that you could add an external reference apart from the listed ones.
How do you add an external reference in MonoDevelop?
Being fairly new to Ubuntu (consequently, to using apps), I found it quite challenging to grapple with the dilemma above. After hours of searching (almost half a day actually), I found the answer. I created this post for others who might be facing this problem too.
Before proceeding, make sure you have your
dll
file to add as a reference.First, create a .pc file containing the following:
Example:
Hat tip to this site.
Remember where you've saved your .pc file. I've saved my file in
/home/xxx/Documents
. Next, copy the .pc file to/usr/lib/pkgconfig
. I'm not sure with other Linux distros, but Ubuntu is preventing me to directly copy paste the file to the folder, so I have to use this command on the terminal:Example:
It is now included in the Edit References window.
If the reference does not show, please refer to this question.